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ヶ月前