0%

nginx | 端口代理 websocket

端口关联 websocket

1
2
3
4
5
6
7
8
9
10
11
12
server {
server_name websocket.***.bond;
listen 443 ssl;
ssl_certificate /root/https/fullchain.crt;
ssl_certificate_key /root/https/private.pem;
location / {
proxy_pass http://127.0.0.1:9999/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
}
}
请我喝杯咖啡吧~