“Nginx配置Web Socket HTTPS WSS”的版本间的差异
跳到导航
跳到搜索
(创建页面,内容为“=nginx配置HTTPS WSS= <pre> cat backend/wssns.cai.com.conf server { listen *:80; listen [::]:80; listen *:443 ssl; listen [::]:443 ssl; server_nam…”) |
|||
第38行: | 第38行: | ||
=see also= | =see also= | ||
+ | [https://forum.seerchain.org/t/topic/671 建立一个HTTPS的测试网络钱包] | ||
[https://blog.csdn.net/diyiday/article/details/80537345 nginx配置HTTPS WSS] | [https://blog.csdn.net/diyiday/article/details/80537345 nginx配置HTTPS WSS] |
2019年12月20日 (五) 10:10的最新版本
nginx配置HTTPS WSS
cat backend/wssns.cai.com.conf server { listen *:80; listen [::]:80; listen *:443 ssl; listen [::]:443 ssl; server_name wssns.cai.com; access_log /var/log/nginx/wssns.cai.com.log; root /var/www/api.sns.cai.com/public; index index.php index.html index.htm; # ssl on; ssl_certificate /etc/nginx/ssl/cai.crt; ssl_certificate_key /etc/nginx/ssl/cai.key; ssl_session_cache shared:SSL:1m; ssl_session_timeout 5m; ssl_ciphers HIGH:!aNULL:!MD5; ssl_prefer_server_ciphers on; location / { proxy_pass http://172.16.200.10:9501; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; } }