holy后端

This commit is contained in:
2026-08-04 14:02:45 +08:00
commit 175b38138e
25 changed files with 3752 additions and 0 deletions

View 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;
}