diff --git a/server-nginx-default b/server-nginx-default index 94405ba..29ff3a6 100644 --- a/server-nginx-default +++ b/server-nginx-default @@ -93,7 +93,6 @@ server { location /ir-valuation { alias /home/admin/frontend-ir-valuation/dist/; try_files $uri $uri/ /ir-valuation/index.html; - index index.html; } # API endpoints -> route to gateway (host 8100 -> container 8000) @@ -209,6 +208,12 @@ server { proxy_set_header X-Forwarded-Proto $scheme; } + # IR Valuation Frontend - must come before / for priority + location ^~ /ir-valuation { + alias /home/admin/frontend-ir-valuation/dist/; + try_files $uri $uri/ /ir-valuation/index.html; + } + # Main application static files location / { try_files $uri $uri/ /index.html; @@ -234,13 +239,6 @@ server { try_files $uri /goosefarm/index.html; } - # IR Valuation Frontend - location /ir-valuation { - alias /home/admin/frontend-ir-valuation/dist/; - try_files $uri $uri/ /ir-valuation/index.html; - index index.html; - } - # API endpoints -> route to gateway (host 8100 -> container 8000) location /api/ { proxy_pass http://localhost:8100;