Files
infoscreen/nginx.conf
olaf 628a3b1fe9 introduce nginex-proxy
use host ip if working in wsl
2025-06-10 22:55:13 +02:00

24 lines
646 B
Nginx Configuration File

events {}
http {
upstream dashboard {
server infoscreen-dashboard:8050;
}
server {
listen 80;
server_name _;
location /api/ {
proxy_pass http://infoscreen-api:8000/api/;
}
location /screenshots/ {
proxy_pass http://infoscreen-api:8000/screenshots/;
}
location / {
proxy_pass http://dashboard;
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;
}
}
}