You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
``## 원인
Nginx는 기본적으로 Upstream(즉 프록시 뒤에 있는 애플리케이션 서버)으로 요청을 보낼때 HTTP/1.0 버전을 사용한다.
이는 Connection: close 헤더를 사용하여 SSE가 필요로 하는 지속 연결(keep-alive)를 닫아버린다.
해결
Nginx가 업스트림 서버에 보내는 HTTP 요청의 버전을 HTTP/1.1로 지정하여 "keep-alive" 연결이 가능하게 했다.
nginx.conf 파일에 다음의 두 조건을 추가했다.
sse를 사용하는 특정 URI에 다음의 설정을 해줬다.
Beta Was this translation helpful? Give feedback.
All reactions