refactor(home-assistant): move nginx config to home-assistant.nix

This commit is contained in:
Felix Schröter 2021-10-08 18:58:39 +02:00
parent 511c626df1
commit 9145766972
No known key found for this signature in database
GPG key ID: 910ACB9F6BD26F58
2 changed files with 8 additions and 11 deletions

View file

@ -57,17 +57,6 @@ with builtins; {
recommendedOptimisation = true; recommendedOptimisation = true;
recommendedGzipSettings = true; recommendedGzipSettings = true;
recommendedProxySettings = true; recommendedProxySettings = true;
virtualHosts = {
${config.networking.domain} = {
enableACME = true;
forceSSL = true;
locations."/" = {
proxyPass = "http://localhost:8123";
proxyWebsockets = true;
};
};
};
}; };
programs.zsh.enable = true; programs.zsh.enable = true;

View file

@ -19,6 +19,14 @@ in {
proxyWebsockets = true; proxyWebsockets = true;
}; };
}; };
${config.networking.domain} = {
enableACME = true;
forceSSL = true;
locations."/" = {
proxyPass = "http://localhost:8123";
proxyWebsockets = true;
};
};
}; };
}; };