VergilGao Posted March 1, 2022 Share Posted March 1, 2022 我的ssl证书在其他设备上,通过外网访问的内网设备都是通过那个设备来做反代并应用ssl来保证安全的。 但是我在用unraid的时候发现,如果反代webui会出现一些数据无法正常显示的bug Quote Link to comment
Solution Earsum Posted March 2, 2022 Solution Share Posted March 2, 2022 用traefik反代现在没出什么问题,用nginx应该需要配置websocket? 你可以参考这个链接的配置(但是我自己没试过) 1 Quote Link to comment
VergilGao Posted March 3, 2022 Author Share Posted March 3, 2022 (edited) 感谢,配置了 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, 2022 by VergilGao 1 Quote Link to comment
Recommended Posts
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.