From 5695cca1601c8eb5d5ca94031457ba82a3a64c43 Mon Sep 17 00:00:00 2001 From: Colin Diem Date: Sat, 17 Apr 2021 11:04:49 -0400 Subject: [PATCH] Attempting to fix websockets for ha. --- nginx-reverse-proxy/default.conf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nginx-reverse-proxy/default.conf b/nginx-reverse-proxy/default.conf index 4a27661..4fb3c98 100644 --- a/nginx-reverse-proxy/default.conf +++ b/nginx-reverse-proxy/default.conf @@ -99,11 +99,15 @@ server { location / { include /etc/nginx/includes/proxy.conf; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "Upgrade"; proxy_pass http://homeassistant:8123; } location /api/websocket { include /etx/nginx/includes/proxy.conf; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "Upgrade"; proxy_pass http://homeassistant:8123/api/websocket } access_log /var/log/nginx/ha-access.log;