27 lines
764 B
Plaintext
27 lines
764 B
Plaintext
location = /holy-crab {
|
|
return 301 /holy-crab/;
|
|
}
|
|
|
|
location ^~ /holy-crab/api/ {
|
|
proxy_pass http://127.0.0.1:18000/api/;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
proxy_read_timeout 180s;
|
|
proxy_send_timeout 180s;
|
|
}
|
|
|
|
location = /holy-crab/health {
|
|
proxy_pass http://127.0.0.1:18000/health;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
}
|
|
|
|
location ^~ /holy-crab/ {
|
|
alias /opt/holy-crab/frontend/;
|
|
try_files $uri $uri/ /holy-crab/index.html;
|
|
}
|