Files
lehuo/infra/deploy/nginx.local.conf.template
T

28 lines
720 B
Plaintext
Raw Normal View History

server {
listen 80;
server_name _;
client_max_body_size 12m;
root /usr/share/nginx/html;
index index.html;
location /api/ {
proxy_http_version 1.1;
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_pass http://api:3000;
}
location /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_pass http://api:3000;
}
location / {
try_files $uri $uri/ /index.html;
}
}