allowed (non-nix) home assistant to be acessed from outside.

This commit is contained in:
Gabe Venberg 2025-06-20 15:49:07 +02:00
parent 50ff7398bd
commit 6b12a84671
4 changed files with 32 additions and 9 deletions

View file

@ -10,7 +10,7 @@
mutableSettings = true;
allowDHCP = true;
openFirewall=true;
port=80;
port=8080;
};
networking.firewall.allowedUDPPorts=[53 67 546 547];
}

View file

@ -12,6 +12,7 @@ inputs.nixpkgs.lib.nixosSystem {
./disk-config.nix
./hardware-config.nix
./adguard.nix
./nginx.nix
../../configs/nixos/common.nix
../../configs/nixos/sshd.nix
../../configs/nixos/secrets.nix

View file

@ -0,0 +1,21 @@
{
inputs,
config,
pkgs,
lib,
...
}: {
imports = [
../../configs/nixos/nginx.nix
];
# For non-nix home assistant.
services.nginx.virtualHosts."home.venberg.xyz" = {
enableACME = true;
forceSSL = true;
locations."/" = {
proxyPass = "http://10.10.0.3:8123";
proxyWebsockets = true;
};
};
}