hass via nginx
This commit is contained in:
parent
d2f33997e7
commit
380565cfc5
3 changed files with 9 additions and 5 deletions
|
@ -284,9 +284,17 @@ in {
|
||||||
virtualHosts = {
|
virtualHosts = {
|
||||||
"iot.pepe.private" = {
|
"iot.pepe.private" = {
|
||||||
serverAliases = [ "hass.pepe.private" "home.pepe.private" ];
|
serverAliases = [ "hass.pepe.private" "home.pepe.private" ];
|
||||||
|
extraConfig = ''
|
||||||
|
proxy_buffering off;
|
||||||
|
'';
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
|
proxyPass = "http://127.0.0.1:8123";
|
||||||
proxyWebsockets = true;
|
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;
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -7,7 +7,6 @@ in {
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
|
|
||||||
|
|
||||||
# bluetooth gui
|
# bluetooth gui
|
||||||
blueberry
|
blueberry
|
||||||
|
|
||||||
|
@ -34,7 +33,6 @@ in {
|
||||||
# foto
|
# foto
|
||||||
#fuji-cam-wifi-tool
|
#fuji-cam-wifi-tool
|
||||||
|
|
||||||
|
|
||||||
tor-browser-bundle-bin
|
tor-browser-bundle-bin
|
||||||
#(tor-browser-bundle-bin.overrideAttrs (old: rec {
|
#(tor-browser-bundle-bin.overrideAttrs (old: rec {
|
||||||
# version = "10.0.15";
|
# version = "10.0.15";
|
||||||
|
|
|
@ -63,6 +63,4 @@ in {
|
||||||
sha256 = "04j6gcb6ayrcf7rxr0bkgd48zppiryhdyv7mvp0q12ngdkf2yagd";
|
sha256 = "04j6gcb6ayrcf7rxr0bkgd48zppiryhdyv7mvp0q12ngdkf2yagd";
|
||||||
}) { };
|
}) { };
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue