introduce nginex-proxy
use host ip if working in wsl
This commit is contained in:
24
nginx.conf
Normal file
24
nginx.conf
Normal 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user