home-assistant working
This commit is contained in:
parent
e421a67919
commit
d2f33997e7
2 changed files with 17 additions and 4 deletions
|
@ -38,9 +38,8 @@ in {
|
|||
type = "trusted_networks";
|
||||
trusted_networks = [
|
||||
config.module.cluster.services.tinc."private".networkSubnet
|
||||
# lan network
|
||||
"10.1.0.0/24"
|
||||
"192.168.178.0/24"
|
||||
"127.0.0.1"
|
||||
];
|
||||
}];
|
||||
|
||||
|
@ -285,7 +284,10 @@ in {
|
|||
virtualHosts = {
|
||||
"iot.pepe.private" = {
|
||||
serverAliases = [ "hass.pepe.private" "home.pepe.private" ];
|
||||
locations."/" = { proxyPass = "http://pepe.private:8123"; };
|
||||
locations."/" = {
|
||||
proxyWebsockets = true;
|
||||
proxyPass = "http://localhost:8123";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
@ -18,7 +18,18 @@
|
|||
programs.custom.vim.enable = true;
|
||||
|
||||
# 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
|
||||
];
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue