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달 전