I have been unable to get hass to get HA to work with any update after 0.82.1. If I downgrade to 0.82.1 my HA works and everything is happy. However, once i upgrade to 0.83.x or 0.84.1 I keep getting a 502 Bad Gateway. Not really sure what is breaking.
My configuration.yaml file:
http:
server_port: 8123
use_x_forwarded_for: True
trusted_proxies:
- 127.0.0.1
trusted_networks:
- 192.168.1.0/24
- 192.168.0.0/28
ip_ban_enabled: True
login_attempts_threshold: 5
base_url: https://sub.domain.com
My /etc/nginx/sites-enabled/homeassistant file:
server {
listen 80;
server_name sub.domain.com;
return 301 https://$server_name$request_uri;
}
server {
listen 443 ssl;
server_name sub.domain.com;
ssl on;
ssl_certificate /usr/syno/etc/certificate/fullchain.pem;
ssl_certificate_key /usr/syno/etc/certificate/privkey.pem;
ssl_prefer_server_ciphers on;
#ssl_ecdh_curve secp384r1:prime256v1;
location / {
proxy_pass http://localhost:8123/;
#proxy_set_header Host $host;
proxy_http_version 1.1;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
#proxy_set_header Upgrade $http_upgrade;
#proxy_set_header Connection "Upgrade";
}
location /api/websocket {
proxy_pass http://localhost:8123/api/websocket;
# proxy_set_header Host $host;
proxy_http_version 1.1;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
}
}
any help is greatly appreciated.