diff --git a/docker/nginx/conf/nginx.conf b/docker/nginx/conf/nginx.conf index 7a6496ab..f926a1b1 100644 --- a/docker/nginx/conf/nginx.conf +++ b/docker/nginx/conf/nginx.conf @@ -61,7 +61,7 @@ http { } location / { - root /usr/share/nginx/html; + root /usr/share/nginx/html; # docker映射路径 不允许更改 try_files $uri $uri/ /index.html; index index.html index.htm; } @@ -74,6 +74,11 @@ http { proxy_pass http://server/; } + # 解决 powerjob 代理之后静态文件无法访问的问题 请勿修改乱动 + location .*\.(js|css|jpg|png|svg|woff|ttf|ico)?$ { + proxy_pass http://powerjob-server; + } + error_page 500 502 503 504 /50x.html; location = /50x.html { root html;