本帖最后由 缥缈的孤鸿 于 2019-3-20 23:38 编辑
要用ssl好像在config文件设置开启只用ssl访问,或者用nginx反代,只是把8123转发到443应该是不行的吧,我winserver下用nginx反代ipv6访问没问题,贴一下server配置供参考。
server {
listen [::]:443 ssl;
server_name ha.*****.top;
ssl_certificate C://nginx//ssl_keys//fullchain.cer;
ssl_certificate_key C://nginx//ssl_keys//key.key;
ssl_session_timeout 5m;
ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
location / {
proxy_redirect off;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_read_timeout 86400;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass [url]http://192.168.0.136:8123/;[/url]
}
}
|