From 9fb726b2d7c05089936f50b42a3cf65801e64830 Mon Sep 17 00:00:00 2001 From: teutat3s Date: Mon, 28 Nov 2022 15:18:32 +0100 Subject: [PATCH] flora-6: add obs-portal to caddy auth: redirect / to pub.solar ID management page --- hosts/flora-6/caddy.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/hosts/flora-6/caddy.nix b/hosts/flora-6/caddy.nix index c69f4ebd..8c9ee0a4 100644 --- a/hosts/flora-6/caddy.nix +++ b/hosts/flora-6/caddy.nix @@ -15,6 +15,7 @@ output discard ''; extraConfig = '' + redir / /realms/pub.solar/account temporary reverse_proxy :8080 ''; }; @@ -26,6 +27,14 @@ reverse_proxy :3000 ''; }; + "obs-portal.pub.solar" = { + logFormat = lib.mkForce '' + output discard + ''; + extraConfig = '' + reverse_proxy obs-portal.svc.e5756d08-36fd-424b-f8bc-acdb92ca7b82.lev-1.int.greenbaum.zone:3000 + ''; + }; }; }; networking.firewall.allowedTCPPorts = [ 80 443 ];