home-assistant working

This commit is contained in:
Ingolf Wagner 2021-03-28 09:40:54 +02:00
parent e421a67919
commit d2f33997e7
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B
2 changed files with 17 additions and 4 deletions

View file

@ -38,9 +38,8 @@ in {
type = "trusted_networks"; type = "trusted_networks";
trusted_networks = [ trusted_networks = [
config.module.cluster.services.tinc."private".networkSubnet config.module.cluster.services.tinc."private".networkSubnet
# lan network
"10.1.0.0/24"
"192.168.178.0/24" "192.168.178.0/24"
"127.0.0.1"
]; ];
}]; }];
@ -285,7 +284,10 @@ in {
virtualHosts = { virtualHosts = {
"iot.pepe.private" = { "iot.pepe.private" = {
serverAliases = [ "hass.pepe.private" "home.pepe.private" ]; serverAliases = [ "hass.pepe.private" "home.pepe.private" ];
locations."/" = { proxyPass = "http://pepe.private:8123"; }; locations."/" = {
proxyWebsockets = true;
proxyPass = "http://localhost:8123";
};
}; };
}; };
}; };

View file

@ -18,7 +18,18 @@
programs.custom.vim.enable = true; programs.custom.vim.enable = true;
# no need to to start a service # no need to to start a service
environment.systemPackages = [ pkgs.mosh ]; environment.systemPackages = let
nginxShowConfig = pkgs.writers.writePython3Bin "nginx-show-config" {
flakeIgnore = [ "E265" "E225" "W292" ];
} (lib.fileContents <assets/nginx-show-config.sh>);
in [
pkgs.mosh
# nginxfmt
pkgs.nginx-config-formatter
nginxShowConfig
];
} }