Files
hfb_sys/deploy/nginx/default.conf
T
2026-06-01 08:40:49 +08:00

31 lines
765 B
Plaintext

server {
listen 80;
server_name hfb.221329.cc.cd;
client_max_body_size 20m;
root /usr/share/nginx/html;
index index.html;
location / {
try_files $uri $uri/ /index.html;
}
location /api/ {
proxy_pass http://backend:8080/api/;
proxy_http_version 1.1;
proxy_buffering off;
proxy_read_timeout 3600s;
proxy_set_header Host $http_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_set_header X-Forwarded-Host $http_host;
}
location /health {
proxy_pass http://backend:8080/health;
proxy_set_header Host $http_host;
}
}