os/hosts/chonk/home-assistant.nix
2023-10-06 00:01:53 +02:00

22 lines
385 B
Nix

{
self,
pkgs,
config,
...
}: {
# HTTP
services.nginx = {
virtualHosts."ha.gssws.de" = {
enableACME = true;
forceSSL = true;
locations."/" = {
proxyPass = "http://10.0.1.254:8123";
proxyWebsockets = true;
extraConfig =
"proxy_ssl_server_name on;"
+ "proxy_pass_header Authorization;";
};
};
};
}