diff --git a/nixos/machines/frumar/default.nix b/nixos/machines/frumar/default.nix index d88acc2..5788cb9 100644 --- a/nixos/machines/frumar/default.nix +++ b/nixos/machines/frumar/default.nix @@ -60,6 +60,14 @@ ''; }; }; + virtualHosts."home-assistant.yori.cc" = { + onlySSL = true; + inherit sslCertificate sslCertificateKey; + locations."/" = { + proxyPass = "http://[::1]:8123"; + proxyWebsockets = true; + }; + }; virtualHosts."frumar.yori.cc" = { enableACME = lib.mkForce false; forceSSL = true; @@ -200,6 +208,10 @@ unit_system = "metric"; time_zone = "Europe/Amsterdam"; }; + http = { + use_x_forwarded_for = true; + trusted_proxies = [ "::1" ]; + }; }; }; age.secrets = {