introduce nginex-proxy

use host ip if working in wsl
This commit is contained in:
2025-06-08 04:44:42 +00:00
parent 138c5b1e8c
commit 628a3b1fe9
16 changed files with 164 additions and 103 deletions

24
nginx.conf Normal file
View File

@@ -0,0 +1,24 @@
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;
}
}
}