From 08b3fdb4b0b71c6d73e7decdd9546d42cb1ddd33 Mon Sep 17 00:00:00 2001 From: Willy Hardy Date: Mon, 26 Oct 2020 14:32:14 +0000 Subject: [PATCH] fix config This config was incomplete. The api path is needed for the server to be accessible. Otherwise you run into problems like this. https://old.reddit.com/r/homeassistant/comments/6rgf04/frontend_unable_to_connect/ --- homeassistant.subdomain.conf.sample | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/homeassistant.subdomain.conf.sample b/homeassistant.subdomain.conf.sample index addab49..e5cf792 100644 --- a/homeassistant.subdomain.conf.sample +++ b/homeassistant.subdomain.conf.sample @@ -36,4 +36,14 @@ server { proxy_pass $upstream_proto://$upstream_app:$upstream_port; } + + location /api { + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "upgrade"; + set $upstream_app homeassistant; + set $upstream_port 8123; + set $upstream_proto http; + proxy_pass $upstream_proto://$upstream_app:$upstream_port; + } }