群晖NAS部署,反向代理之后出现静态资源找不到解决方法 #127
BlackWhite2000
started this conversation in
教程
Replies: 2 comments
-
根据变量的名称意思可能是可以自定义cdn路径的功能。 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
我使用群晖的Web Station部署好后,再套上域名以及使用反向代理来隐藏端口。
之后出现了静态资源加载错误的问题,看报错是指向错误,静态资源都指向到了一个本地的ip 127.0.0.1
通过看源代码发现是函数 static_cdn 造成的问题

由于我是个人使用所以解决方法也比较简单粗暴,我直接注释了函数内的代码

函数代码在 app->function.php
该问题得以解决
Beta Was this translation helpful? Give feedback.
All reactions