hass via nginx

This commit is contained in:
Ingolf Wagner 2021-03-28 10:00:09 +02:00
parent d2f33997e7
commit 380565cfc5
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B
3 changed files with 9 additions and 5 deletions

View file

@ -284,9 +284,17 @@ in {
virtualHosts = {
"iot.pepe.private" = {
serverAliases = [ "hass.pepe.private" "home.pepe.private" ];
extraConfig = ''
proxy_buffering off;
'';
locations."/" = {
proxyPass = "http://127.0.0.1:8123";
proxyWebsockets = true;
proxyPass = "http://localhost:8123";
extraConfig = ''
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
'';
};
};
};

View file

@ -7,7 +7,6 @@ in {
environment.systemPackages = with pkgs; [
# bluetooth gui
blueberry
@ -34,7 +33,6 @@ in {
# foto
#fuji-cam-wifi-tool
tor-browser-bundle-bin
#(tor-browser-bundle-bin.overrideAttrs (old: rec {
# version = "10.0.15";

View file

@ -63,6 +63,4 @@ in {
sha256 = "04j6gcb6ayrcf7rxr0bkgd48zppiryhdyv7mvp0q12ngdkf2yagd";
}) { };
}