From fcd8bde8dc66b7fc3e9da95af2cbe2c233f579af Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Wed, 28 Dec 2022 14:09:21 +0800 Subject: [PATCH] hosts/plover: update Keycloak paths in reverse proxy --- hosts/plover/default.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/hosts/plover/default.nix b/hosts/plover/default.nix index 33a7d7fd..ffd0c792 100644 --- a/hosts/plover/default.nix +++ b/hosts/plover/default.nix @@ -158,8 +158,12 @@ in "${codeForgeDomain}" = { forceSSL = true; enableACME = true; - locations."/" = { - proxyPass = "http://localhost:${toString config.services.gitea.httpPort}"; + locations = let + keycloakPath = path: "http://localhost:${toString config.services.gitea.httpPort}${path}"; + in { + "/realms".proxyPass = keycloakPath "/realms"; + "/resources".proxyPass = keycloakPath "/resources"; + "/robots.txt".proxyPass = keycloakPath "/robots.txt"; }; };