1
0
mirror of https://github.com/Mailu/Mailu.git synced 2024-12-14 10:53:30 +02:00

Fix proxifying to static assets

This commit is contained in:
kaiyou 2017-09-24 17:59:58 +02:00
parent 808809b37a
commit 648d092e88

View File

@ -67,8 +67,9 @@ http {
location /admin { location /admin {
return 301 $scheme://$host/admin/ui; return 301 $scheme://$host/admin/ui;
} }
location /admin/ui { location ~ /admin/(ui|static) {
rewrite ^/admin/(.*) /$1 break; rewrite ^/admin/(.*) /$1 break;
proxy_set_header X-Forwarded-Prefix /admin;
proxy_pass http://admin; proxy_pass http://admin;
} }
{% endif %} {% endif %}