Mimo Ryan Wang 🚀 查了一下资料,这样设置反代就可以了,感谢作者orz location / { add_header Content-Security-Policy upgrade-insecure-requests; //解决http mixed content proxy_pass http://halo; proxy_set_header HOST $host; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; }