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 = {
|
locations = {
|
||||||
"/" = { return = "301 https://${domain}/realms/master/account"; };
|
"/" = { return = "301 https://${domain}/realms/master/account"; };
|
||||||
|
|
||||||
|
"/admin" = {
|
||||||
|
proxyPass = "http://127.0.0.1:${
|
||||||
|
toString config.services.keycloak.settings.http-port
|
||||||
|
}";
|
||||||
|
};
|
||||||
|
|
||||||
"/js" = {
|
"/js" = {
|
||||||
proxyPass = "http://localhost:${
|
proxyPass = "http://127.0.0.1:${
|
||||||
toString config.services.keycloak.settings.http-port
|
toString config.services.keycloak.settings.http-port
|
||||||
}";
|
}";
|
||||||
};
|
};
|
||||||
|
|
||||||
"/realms" = {
|
"/realms" = {
|
||||||
proxyPass = "http://localhost:${
|
proxyPass = "http://127.0.0.1:${
|
||||||
toString config.services.keycloak.settings.http-port
|
toString config.services.keycloak.settings.http-port
|
||||||
}";
|
}";
|
||||||
};
|
};
|
||||||
|
|
||||||
"/resources" = {
|
"/resources" = {
|
||||||
proxyPass = "http://localhost:${
|
proxyPass = "http://127.0.0.1:${
|
||||||
toString config.services.keycloak.settings.http-port
|
toString config.services.keycloak.settings.http-port
|
||||||
}";
|
}";
|
||||||
};
|
};
|
||||||
|
|
||||||
"/robots.txt" = {
|
"/robots.txt" = {
|
||||||
proxyPass = "http://localhost:${
|
proxyPass = "http://127.0.0.1:${
|
||||||
toString config.services.keycloak.settings.http-port
|
toString config.services.keycloak.settings.http-port
|
||||||
}";
|
}";
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user