AirGate/frontend/nginx.conf
zyc cc8a91995d
Some checks failed
Build and Deploy / build-and-deploy (push) Failing after 1m11s
Add K8s
2026-03-20 18:35:53 +08:00

19 lines
448 B
Nginx Configuration File

server {
listen 80;
server_name _;
root /usr/share/nginx/html;
index index.html;
location /api/ {
proxy_pass http://airgate-backend:8100;
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 / {
try_files $uri $uri/ /index.html;
}
}