mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-02-07 12:19:07 +00:00
hosts/plover: fix reverse proxy routes
This commit is contained in:
parent
a8e7de9eec
commit
bdf862cc91
@ -158,11 +158,21 @@ in
|
|||||||
|
|
||||||
# Gitea instance.
|
# Gitea instance.
|
||||||
"${codeForgeDomain}" = {
|
"${codeForgeDomain}" = {
|
||||||
|
forceSSL = true;
|
||||||
|
enableACME = true;
|
||||||
|
locations."/" = {
|
||||||
|
proxyPass = "http://localhost:${toString config.services.gitea.httpPort}";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
# Keycloak instance.
|
||||||
|
"${authDomain}" = {
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
locations = let
|
locations = let
|
||||||
keycloakPath = path: "http://localhost:${toString config.services.gitea.httpPort}${path}";
|
keycloakPath = path: "http://localhost:${toString config.services.gitea.httpPort}${path}";
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
"/realms".proxyPass = keycloakPath "/realms";
|
"/realms".proxyPass = keycloakPath "/realms";
|
||||||
"/resources".proxyPass = keycloakPath "/resources";
|
"/resources".proxyPass = keycloakPath "/resources";
|
||||||
"/robots.txt".proxyPass = keycloakPath "/robots.txt";
|
"/robots.txt".proxyPass = keycloakPath "/robots.txt";
|
||||||
|
Loading…
Reference in New Issue
Block a user