2 回答
- 最新
- 投票最多
- 评论最多
1
Hello . Please kindly note that due to the complexity of the case (as it involves multiple services) I would suggest that you open a support case with AWS, so that our skilled engineers can provide informed guidance on this issue. Please note that you can open the case with the ECS team initially.
已回答 3 个月前
1
Does your application set the 'X-Accel-Buffering': 'no'
HTTP header? Because e.g. running a SSE producing server behind NGINX requires that header as otherwise NGINX would close the connection or something similar. You could try running your application locally with NGINX in front of it as a reverse proxy to verify if that’s the case.
nginx.conf:
upstream api {
server api:8080;
}
server {
listen 80;
location /api {
proxy_pass http://api;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $http_host;
proxy_redirect off;
}
}
and then access your SSE backend through NGINX.
I guess it’s possible that the ALB behaves similarly.
已回答 3 个月前
相关内容
- AWS 官方已更新 2 年前
- AWS 官方已更新 1 年前