hosts/plover: fix reverse proxy routes

This commit is contained in:
Gabriel Arazas 2022-12-29 10:25:53 +08:00
parent a8e7de9eec
commit bdf862cc91

View File

@ -158,11 +158,21 @@ in
# Gitea instance.
"${codeForgeDomain}" = {
forceSSL = true;
enableACME = true;
locations."/" = {
proxyPass = "http://localhost:${toString config.services.gitea.httpPort}";
};
};
# Keycloak instance.
"${authDomain}" = {
forceSSL = true;
enableACME = true;
locations = let
keycloakPath = path: "http://localhost:${toString config.services.gitea.httpPort}${path}";
in {
in
{
"/realms".proxyPass = keycloakPath "/realms";
"/resources".proxyPass = keycloakPath "/resources";
"/robots.txt".proxyPass = keycloakPath "/robots.txt";