diff --git a/deploy/nginx/admin.conf b/deploy/nginx/admin.conf index 7e2262f..8fc4f17 100644 --- a/deploy/nginx/admin.conf +++ b/deploy/nginx/admin.conf @@ -4,15 +4,12 @@ server { root /usr/share/nginx/html; index index.html; - location = / { return 302 /admin/; } location /admin/ { - rewrite ^/admin/(.*)$ /$1 last; + alias /usr/share/nginx/html/; + try_files $uri $uri/ /index.html; } + location = /admin { return 302 /admin/; } location / { try_files $uri $uri/ /index.html; } - location ~* \.(js|css|png|jpg|svg|woff2?)$ { - expires 30d; - add_header Cache-Control "public, immutable"; - } }