diff --git a/SwiftParcel.Web/nginx.conf b/SwiftParcel.Web/nginx.conf index 5fd0f19..f2037da 100644 --- a/SwiftParcel.Web/nginx.conf +++ b/SwiftParcel.Web/nginx.conf @@ -15,25 +15,10 @@ http { try_files $uri $uri/ /SaintAngeLs/courier_app/index.html; } - location ~ ^/SaintAngeLs/courier_app/static/ { - # Correct the path in try_files to refer to the right fallback - try_files $uri $uri/ /SaintAngeLs/courier_app/index.html; - } - - # Separate location blocks for JavaScript and CSS with specific optimizations - location ~* \.(js)$ { - try_files $uri /SaintAngeLs/courier_app/index.html; - expires 1y; - access_log off; - add_header Cache-Control "public"; - } - - location ~* \.(css)$ { - try_files $uri /SaintAngeLs/courier_app/index.html; - expires 1y; - access_log off; - add_header Cache-Control "public"; - } + # location /SaintAngeLs/courier_app/static/ { + # alias /usr/share/nginx/html/static/; + # try_files $uri $uri/ /SaintAngeLs/courier_app/static; + # } error_page 404 /index.html; }