summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/ham/nginx.nix
blob: 2048ff2150ca25d018249a5938a3ff4baf7d8591 (plain)
1
2
3
4
5
6
7
8
9
10
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;
  };
}