location /wss/  {   
    proxy_pass http://127.0.0.1:82/;        #通过配置端口指向部署websocker的项目
    proxy_http_version 1.1;    
    proxy_set_header Upgrade $http_upgrade;    
    proxy_set_header Connection "Upgrade";    
    proxy_set_header X-real-ip $remote_addr;
    proxy_set_header X-Forwarded-For $remote_addr;
}

# To Be Continued!😎

Last Updated: 11/9/2020, 4:32:01 PM