nginx config ws转wss如 wssxxgpdecom6013proxy1115625156099oodexxDeser3proxy 后面为ws的实际链接
server { listen 443 ssl; server_name xx.gpde.com;
ssl_certificate /path/to/cert.pem;
ssl_certificate_key /path/to/key.pem;
location /proxy/ {
proxy_pass https://111.56.25.15:6099/oodex/xDeser3;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
}
原文地址: http://www.cveoy.top/t/topic/brQq 著作权归作者所有。请勿转载和采集!