From acb2cafcc4b098ac9410b2b2a68503c9228c9b56 Mon Sep 17 00:00:00 2001 From: NullBite Date: Mon, 15 Jul 2024 18:05:25 -0400 Subject: [PATCH] rpi4: create other auth endpoints --- hosts/rpi4/services.nix | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/hosts/rpi4/services.nix b/hosts/rpi4/services.nix index d7bcef2..cc74c24 100644 --- a/hosts/rpi4/services.nix +++ b/hosts/rpi4/services.nix @@ -156,12 +156,11 @@ mkAuthProxy = port: mkProxy { inherit port; authelia = true; }; mkReverseProxy = port: mkProxy { inherit port; }; - in { - "auth.protogen.io" = { - forceSSL = true; - inherit useACMEHost; - authelia.endpoint.instance = "main"; - }; + in (lib.mapAttrs (domain: instance: { forceSSL = true; inherit useACMEHost; authelia.endpoint = { inherit instance; };}) { + "auth.protogen.io" = "main"; + "auth.nbt.sh" = "nbt-sh"; + "auth.proot.link" = "proot-link"; + }) // { "changedetection.protogen.io" = mkReverseProxy 5000; # firefly