holy后端
This commit is contained in:
26
deploy/nginx-holy-crab.conf
Normal file
26
deploy/nginx-holy-crab.conf
Normal file
@@ -0,0 +1,26 @@
|
||||
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;
|
||||
}
|
||||
Reference in New Issue
Block a user