1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
| server { listen 443 ssl; server_name xxx.com; ssl on; ssl_certificate /usr/share/nginx/conf/cert/xxx.pem; ssl_certificate_key /usr/share/nginx/conf/cert/xxx.key; ssl_session_timeout 20m; ssl_verify_client off; location / { # 代理ws服务器 proxy_pass http://172.20.0.1:1234; proxy_http_version 1.1; # 最大超时时间 proxy_read_timeout 3600s; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "Upgrade"; } }
|