March 1, 20224 yr 我的ssl证书在其他设备上,通过外网访问的内网设备都是通过那个设备来做反代并应用ssl来保证安全的。 但是我在用unraid的时候发现,如果反代webui会出现一些数据无法正常显示的bug
March 3, 20224 yr Author 感谢,配置了 ws 之后就正常了,脑子糊涂了忘记了 下面是我的nginx.conf文件,仅供参考,敏感信息已经隐去。 upstream unraid { server 192.168.199.200; keepalive 64; } server { listen 80; listen [::]:80; server_name unraid.example.com; return 301 https://$host$request_uri; } server { listen 443 ssl http2; listen [::]:443 ssl http2; server_name unraid.example.com; access_log /tmp/log/nginx/unraid.access.log; error_log /tmp/log/nginx/unraid.error.log; ssl_protocols TLSv1.3; ssl_prefer_server_ciphers on; ssl_ciphers EECDH+AESGCM:EDH+AESGCM; ssl_session_timeout 10m; ssl_session_cache shared:SSL:10m; ssl_session_tickets off; ssl_certificate /etc/acme/*.example.com/*.example.com.cer; ssl_certificate_key /etc/acme/*.example.com/*.example.com.key; location / { proxy_pass http://unraid; proxy_http_version 1.1; proxy_buffering off; proxy_set_header Host $http_host; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "Upgrade"; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_redirect off; } } Edited March 16, 20224 yr by VergilGao
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.