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 {
return 301 $scheme://$host/admin/ui;
}
location /admin/ui {
location ~ /admin/(ui|static) {
rewrite ^/admin/(.*) /$1 break;
proxy_set_header X-Forwarded-Prefix /admin;
proxy_pass http://admin;
}
{% endif %}