diff options
author | Martin Fischer <martin@push-f.com> | 2025-09-18 06:00:38 +0200 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2025-09-18 10:48:23 +0200 |
commit | b5840e628e60d1614e6e4e04b3ca30f3c7bfacd8 (patch) | |
tree | 2bb0d423338166a2e259be85b910d5c6760569fa /nixos/hosts/tente | |
parent | 70b3abe0d6a5e7cf46a8109dce05edcaca892f79 (diff) |
feat: generate web index for private web UIs
Diffstat (limited to 'nixos/hosts/tente')
-rw-r--r-- | nixos/hosts/tente/default.nix | 2 | ||||
-rw-r--r-- | nixos/hosts/tente/ports.nix | 10 |
2 files changed, 11 insertions, 1 deletions
diff --git a/nixos/hosts/tente/default.nix b/nixos/hosts/tente/default.nix index 4d4a4f3..a54de6c 100644 --- a/nixos/hosts/tente/default.nix +++ b/nixos/hosts/tente/default.nix @@ -203,6 +203,8 @@ in enable = true; group = "www-data"; + virtualHosts."tente.tailnet" = helpers.serviceIndexHost "tente.tailnet" ports.webUis; + appendHttpConfig = '' # Close the connection for unknown Host headers. # If we don't do this nginx serves some random virtualhost. diff --git a/nixos/hosts/tente/ports.nix b/nixos/hosts/tente/ports.nix index 3a2b2fe..133d0f7 100644 --- a/nixos/hosts/tente/ports.nix +++ b/nixos/hosts/tente/ports.nix @@ -1,4 +1,4 @@ -{ +rec { grafana = 3000; grafanaAlloy = 3001; grafanaLoki = 3030; @@ -8,4 +8,12 @@ prometheus = 9090; prometheusNodeExporter = 9002; prometheusSqlExporter = 9003; + + webUis = { + inherit + grafana + grafanaAlloy + prometheus + ; + }; } |