nginx 代理websocket

小七要走發表於2024-06-26

一、配置

  location /websocket {
    proxy_pass http://localhost/websocket;
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "upgrade";
    proxy_read_timeout 600s;
  }

相關文章