LoginSignup
0
0

ip+portでは問題ないんだけど、domain名でアクセスするとwebsocket接続エラー(ws/wss)

Posted at

結論: 下記通り、nginx.conf->locationの設定を追加して解決した

location / {

# その他設定

  # websocket接続エラー解決するため --start  
  proxy_http_version 1.1;
  proxy_set_header Upgrade $http_upgrade;
  proxy_set_header Connection "Upgrade";
  # websocket接続エラー解決するため --end

# その他設定
}
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0