From 71f14da7675a65957ea03a500cbe55b426284ed9 Mon Sep 17 00:00:00 2001 From: chris Date: Thu, 16 Oct 2025 12:40:48 +0000 Subject: [PATCH] too lazy to think of a message, so enjoy this pointless text. Good luck future me... --- clanServices/zitadel/default.nix | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/clanServices/zitadel/default.nix b/clanServices/zitadel/default.nix index 441fd33..cba4edc 100644 --- a/clanServices/zitadel/default.nix +++ b/clanServices/zitadel/default.nix @@ -130,21 +130,19 @@ in ]; }; - services.caddy = { + services.nginx = { enable = true; + virtualHosts = { - "auth.amarth.cloud".extraConfig = '' - reverse_proxy h2c://127.0.0.1:9092 - ''; + "auth.amarth.cloud" = { + enableACME = true; + forceSSL = true; + + locations."/" = { + proxyPass = "h2c://127.0.0.1:9092"; + }; + }; }; - extraConfig = '' - (auth-z) { - forward_auth h2c://127.0.0.1:9092 { - uri /api/authz/forward-auth - copy_headers Remote-User Remote-Groups Remote-Email Remote-Name - } - } - ''; }; }; };