兰空图床使用反向代理并且域名使用了 https 的情况下,程序请求静态资源、生成的链接却是 http ?
不需要看官方文档解决方法
这种情况通常是因为你的程序正在从 80 端口进行转发流量,详细解释和解决方法:
https://laravel.com/docs/9.x/requests#configuring-trusted-proxies 请尝试增加反向代理配置:
proxy_http_version 1.1;
proxy_set_header Host $http_host;
proxy_set_header Scheme $scheme;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;最终解决方法
直接打开图床后台
网络配置 #Docker/兰空图床
本文著作权归作者 [ LXHei ] 享有,未经作者书面授权,禁止转载,封面图片来源于 [ 互联网 ] ,本文仅供个人学习、研究和欣赏使用。如有异议,请联系博主及时处理。


123