Fix: IR Valuation location priority with ^~ prefix
All checks were successful
Deploy Nginx Config to Ubuntu Server / deploy (push) Successful in 2s
All checks were successful
Deploy Nginx Config to Ubuntu Server / deploy (push) Successful in 2s
This commit is contained in:
parent
ba597ac187
commit
5cf0190aeb
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user