My Google-fu has been failing me for hours trying to get NGINX and HASS happy together. My configuration is the LinxuserverIO LetsEncrypt docker container with a HASS docker container
I’m able to proxy other apps such as SABNZBD fine and I am able to able to hit the HASS login page externally but after I type in the password the login times out with an “Unable to Connect” message at the login page. Can anyone give some pointers to where I should look next?
Configs:
Default in sites-config:
server {
listen 80 default_server;
#listen [::]:80 default_server;
return 301 https://$host$request_uri;
}
server {
server_name redacted;
ssl_certificate /config/keys/letsencrypt/fullchain.pem;
ssl_certificate_key /config/keys/letsencrypt/privkey.pem;
ssl_dhparam /config/nginx/dhparams.pem;
listen 443 default_server;
add_header Strict-Transport-Security "max-age=31536000; includeSubdomains";
ssl on;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers "EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH:!aNULL:!eNULL:!EXPORT:!DES:!MD5:!PSK:!RC4";
ssl_prefer_server_ciphers on;
ssl_session_cache shared:SSL:10m;
proxy_buffering off;
location / {
proxy_pass http://internalIP:8123;
proxy_set_header Host $host;
proxy_redirect http:// https://;
proxy_http_version 1.1;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Upgrade $http_upgrade;
}
}
configuration.yaml:
http:
# Uncomment this to add a password (recommended!)
api_password: pass