stockholm/makefu/2configs/home/ham/nginx.nix
2021-03-09 22:14:51 +01:00

11 lines
286 B
Nix

let
internal-ip = "192.168.1.11";
in {
services.nginx.recommendedProxySettings = true;
services.nginx.virtualHosts."hass" = {
serverAliases = [ "hass.lan" "ha" "ha.lan" ];
locations."/".proxyPass = "http://localhost:8123";
locations."/".proxyWebsockets = true;
};
}