Files
Web-Architekturen-Projekt/nginx/nginx.conf
T
2026-05-27 14:37:46 +02:00

21 lines
501 B
Nginx Configuration File

server {
listen 80;
server_name _;
client_max_body_size 100k;
location /api/ {
proxy_pass http://backend:8000;
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 / {
proxy_pass http://frontend:80;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}
}