diff --git a/frontend/nginx/default.conf b/frontend/nginx/default.conf index c734b2ad..589f4ecf 100644 --- a/frontend/nginx/default.conf +++ b/frontend/nginx/default.conf @@ -1,4 +1,4 @@ -server { +server { listen 8080; server_name frontend; gzip on; @@ -9,7 +9,7 @@ server { index index.html index.htm; try_files $uri /index.html; } - location ~* /[^/]*\.(?:ico|css|js|gif|jpe?g|png|woff2)$ { + location ~* ^(?!/api)/[^/]*\.(?:ico|css|js|gif|jpe?g|png|woff2)$ { root /var/www/html; try_files $uri =404; add_header Cache-Control "public, immutable, max-age=2592000";