mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 10:58:02 +00:00
hosts/plover: update Keycloak reverse proxy config
Now that a tunneling service is here, there's not much need to expose the whole thing.
This commit is contained in:
parent
9a941dc543
commit
ceb821f2c0
@ -69,9 +69,15 @@ in
|
||||
services.nginx.virtualHosts."${authDomain}" = {
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
locations."/" = {
|
||||
proxyPass = "http://localhost:${toString config.services.keycloak.settings.http-port}";
|
||||
};
|
||||
|
||||
# This is based from the reverse proxy guide from the official
|
||||
# documentation at https://www.keycloak.org/server/reverseproxy.
|
||||
locations = let
|
||||
keycloakPath = path: "http://localhost:${toString config.services.keycloak.settings.http-port}";
|
||||
in
|
||||
lib.listToAttrs
|
||||
(appPath: lib.nameValuePair appPath { proxyPass = keycloakPath appPath; })
|
||||
[ "/js/" "/realms/" "/resources/" "/robots.txt" ];
|
||||
};
|
||||
|
||||
# Configuring fail2ban for this services which is only present as a neat
|
||||
|
Loading…
Reference in New Issue
Block a user