背景简要说下:这个emby 站点是挂的cf 。一直尝试用nginx反代,但是不成功。最后的解决方案是.
`location / {
proxy_pass https:///;#反代域名
client_max_body_size 5000M;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For '$proxy_add_x_forwarded_for';
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host ;#反代域名
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_read_timeout 86400;
proxy_ssl_name ;#反代域名
proxy_ssl_server_name on;
proxy_ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3;
}`
重点其实是: proxy_ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3; 要不然会一直502
评论 (0)