From 4eca3364dd8fd9c8d251a75792af1465d95425be Mon Sep 17 00:00:00 2001 From: Gene Liverman Date: Tue, 17 Dec 2024 13:35:00 -0500 Subject: [PATCH] Setup albyhub --- .../hosts/nixos/hetznix01/post-install/nginx.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/modules/hosts/nixos/hetznix01/post-install/nginx.nix b/modules/hosts/nixos/hetznix01/post-install/nginx.nix index 983de95..91ed18c 100644 --- a/modules/hosts/nixos/hetznix01/post-install/nginx.nix +++ b/modules/hosts/nixos/hetznix01/post-install/nginx.nix @@ -69,6 +69,21 @@ in { }; }; }; + "albyhub.${domain}" = { + listen = [ + { port = https_port; addr = "0.0.0.0"; ssl = true; } + { port = https_port; addr = "[::]"; ssl = true; } + ]; + enableACME = true; + acmeRoot = null; + forceSSL = true; + # basicAuthFile = config.sops.secrets.owntracks_basic_auth.path; + # Albyhub container + locations."/" = { + proxyPass = "http://127.0.0.1:8080"; + proxyWebsockets = true; + }; + }; "matrix.${domain}" = { listen = [ { port = https_port; addr = "0.0.0.0"; ssl = true; }