사용자 도구

사이트 도구


springframework:httpstream

차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

양쪽 이전 판 이전 판
springframework:httpstream [2022/01/04 16:59]
kwon37xi [ServerSentEvent Reverse Proxy(nginx) 설정]
springframework:httpstream [2022/01/04 17:00] (현재)
kwon37xi [ServerSentEvent Reverse Proxy(nginx) 설정]
줄 31: 줄 31:
 ... ...
 </code> </code>
-  * 아니면 nginx 의 SSE 관련 url 프록시에 대해서만 ''proxy_buffering off;'' 및 기타 설정.+  * nginx 의 SSE 관련 url 프록시에 대해서만 ''proxy_buffering off;'' 및 기타 설정.
   * [[https://stackoverflow.com/questions/13672743/eventsource-server-sent-events-through-nginx|ruby - EventSource / Server-Sent Events through Nginx - Stack Overflow]] - https://stackoverflow.com/a/13673298/1051402   * [[https://stackoverflow.com/questions/13672743/eventsource-server-sent-events-through-nginx|ruby - EventSource / Server-Sent Events through Nginx - Stack Overflow]] - https://stackoverflow.com/a/13673298/1051402
  
줄 37: 줄 37:
 location /path/to/sse { location /path/to/sse {
   proxy_pass http://upstream;   proxy_pass http://upstream;
-  proxy_buffering off;+  proxy_buffering off; # X-Accel-Buffering: no 와 같은 효과
   proxy_cache off;   proxy_cache off;
   proxy_set_header Host $host;   proxy_set_header Host $host;
springframework/httpstream.1641283150.txt.gz · 마지막으로 수정됨: 2022/01/04 16:59 저자 kwon37xi