[error] websocket connection to failed / Nginx Reverse Proxy 환경에서 websocket 연결 설정

zzzzsb·2022년 12월 17일
0

error-log

목록 보기
4/4

location /wsapp/ {
    proxy_pass http://wsbackend;
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "Upgrade";
    proxy_set_header Host $host;
}

위 설정을 추가해줬더니 바로 소켓연결이 정상작동했다.
https 배포와의 전쟁 ,,,
공식문서를 잘 읽자. ㅠㅠ

참고자료

profile
성장하는 developer

0개의 댓글