zkt26/z1/nginx/nginx.conf
2026-04-08 17:30:09 +02:00

25 lines
559 B
Nginx Configuration File

events {
worker_connections 1024;
}
http {
upstream backend {
server backend:5000;
}
server {
listen 80 default_server;
listen [::]:80;
server_name backend;
location /api/ {
proxy_pass http://backend/;
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 / {
root /var/www/html;
index index.html;
}
}
}