Nginx配置为:

server {
listen 443 ssl http2; # 如果你木有添加 HTTP2 模块,请删除 http2
server_name allure.pw; # 将 allure.pw 修改成你的域名
ssl_certificate /www/server/panel/vhost/cert/v.allure.pw/fullchain.pem; # 证书路径
ssl_certificate_key /www/server/panel/vhost/cert/v.allure.pw/privkey.pem; # 密钥路径
ssl_protocols TLSv1.1 TLSv1.2 TLSv1.3;
ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:HIGH:!aNULL:!MD5:!RC4:!DHE;
location / {
proxy_pass http://localhost:2333; # 2333 为项目端口
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection “upgrade”;
}
}

PS:2333测试可用,其他请自测

Last modification:November 17th, 2019 at 11:36 pm
如果觉得我的文章对你有用,请随意赞赏