keycloak: Expose /admin endpoint. Use 127.0.0.1 instead of localhost to
avoid IPv6.
This commit is contained in:
parent
60546992b2
commit
09e3ef237b
@ -37,26 +37,32 @@ in {
|
||||
locations = {
|
||||
"/" = { return = "301 https://${domain}/realms/master/account"; };
|
||||
|
||||
"/admin" = {
|
||||
proxyPass = "http://127.0.0.1:${
|
||||
toString config.services.keycloak.settings.http-port
|
||||
}";
|
||||
};
|
||||
|
||||
"/js" = {
|
||||
proxyPass = "http://localhost:${
|
||||
proxyPass = "http://127.0.0.1:${
|
||||
toString config.services.keycloak.settings.http-port
|
||||
}";
|
||||
};
|
||||
|
||||
"/realms" = {
|
||||
proxyPass = "http://localhost:${
|
||||
proxyPass = "http://127.0.0.1:${
|
||||
toString config.services.keycloak.settings.http-port
|
||||
}";
|
||||
};
|
||||
|
||||
"/resources" = {
|
||||
proxyPass = "http://localhost:${
|
||||
proxyPass = "http://127.0.0.1:${
|
||||
toString config.services.keycloak.settings.http-port
|
||||
}";
|
||||
};
|
||||
|
||||
"/robots.txt" = {
|
||||
proxyPass = "http://localhost:${
|
||||
proxyPass = "http://127.0.0.1:${
|
||||
toString config.services.keycloak.settings.http-port
|
||||
}";
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user