Update ssl.conf

https://github.com/alexbelgium/hassio-addons/issues/1210
This commit is contained in:
Alexandre
2024-01-30 13:46:50 +01:00
committed by GitHub
parent 29abc2253f
commit d5cd62d4c6

View File

@@ -10,13 +10,19 @@
location / {
# Proxy pass
proxy_pass http://127.0.0.1:9000;
proxy_pass http://localhost:9000;
# Next three lines allow websockets
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
# Improve ip handling
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;
proxy_set_header Accept-Encoding "";
proxy_read_timeout 90;
}
}