initial feature/react-migration commit
This commit is contained in:
14
nginx.conf
14
nginx.conf
@@ -1,14 +1,22 @@
|
||||
events {}
|
||||
http {
|
||||
upstream dashboard {
|
||||
server infoscreen-dashboard:8050;
|
||||
server 127.0.0.1:3000;
|
||||
}
|
||||
server {
|
||||
listen 80;
|
||||
server_name _;
|
||||
|
||||
# Optional: HTTP auf HTTPS weiterleiten
|
||||
return 301 https://$host$request_uri;
|
||||
# return 301 https://$host$request_uri;
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
||||
server {
|
||||
listen 443 ssl;
|
||||
@@ -31,4 +39,4 @@ http {
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user