wss

 

 

location /ws { 
  proxy_pass http://wss;
  proxy_http_version 1.1;
  proxy_set_header Upgrade $http_upgrade;
  proxy_set_header Connection "Upgrade";
}

 

 

 

map $http_upgrade $connection_upgrade {
  default upgrade;
  ''      close;
}
upstream wss {
  server localhost:5001;
}

 

posted @ 2022-01-06 22:51  林间有风-邓  阅读(725)  评论(0编辑  收藏  举报