keycloak: Limit access to management console
This commit is contained in:
parent
99f1c28019
commit
46919ae952
1 changed files with 8 additions and 1 deletions
|
@ -27,7 +27,14 @@ in
|
||||||
virtualHosts = {
|
virtualHosts = {
|
||||||
"${config.services.keycloak.settings.hostname}" = {
|
"${config.services.keycloak.settings.hostname}" = {
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
reverse_proxy ${config.services.keycloak.settings.http-host}:${toString config.services.keycloak.settings.http-port}
|
@public_or_allowed_remote {
|
||||||
|
not {
|
||||||
|
not path /realms/* /resources/* /js/* /robots.txt
|
||||||
|
not remote_ip 100.64.0.0/10 86.85.243.40/32
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
reverse_proxy @public_or_allowed_remote ${config.services.keycloak.settings.http-host}:${toString config.services.keycloak.settings.http-port}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue