hosts/plover: update Keycloak paths in reverse proxy

This commit is contained in:
Gabriel Arazas 2022-12-28 14:09:21 +08:00
parent 15722347eb
commit fcd8bde8dc

View File

@ -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";
};
};