keycloak-containers icon indicating copy to clipboard operation
keycloak-containers copied to clipboard

base uri not available for proxy as a subfolder using traefik - Edited

Open fawqsir opened this issue 2 years ago • 1 comments

Describe the bug

Cannot use example.com/keycloak as a subfolder because mission an environment variable.

You can set KC_HOSTNAME: example.com/keycloak but according to docs you need to set the hostname path. This results in links coming back to example.com/admin instead of example.com/keycloak/admin. The following is needed, but not possible as of the latest release. KC_HOSTNAME_PATH:/keycloak

Version

18

Expected behavior

example.com/keycloak/admin

Actual behavior

example.com/admin

How to Reproduce?

No response

Anything else?

No response

fawqsir avatar May 11 '22 01:05 fawqsir

Found more documentation. KC_HOSTPATH_PATH does exist. Just having trouble with traefik i guess. The page at example.com/keycloak reads "We are sorry page not found" The page is there when I go to example.com/keycloak when I strip the prefix with traefik. But the links on the page go to example.com/admin instead of example.com/keycloak/admin

fawqsir avatar May 11 '22 02:05 fawqsir

With Keycloak 20 the WildFly based distribution is no longer supported. For the newer Quarkus distribution of Keycloak, check out the new documentation, or the updated container sources.

stianst avatar Oct 24 '22 07:10 stianst