use proxy.conf to increase code reuse

This commit is contained in:
Willy Hardy 2020-10-26 16:44:56 -04:00 committed by GitHub
parent 08b3fdb4b0
commit 68f98b0ab8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -38,9 +38,7 @@ server {
} }
location /api { location /api {
proxy_http_version 1.1; include /config/nginx/proxy.conf;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
set $upstream_app homeassistant; set $upstream_app homeassistant;
set $upstream_port 8123; set $upstream_port 8123;
set $upstream_proto http; set $upstream_proto http;