running Keycloak with a custom context path is possible.
You need to configure the web-context used by the Keycloak server subsystem to make Keycloak aware of the custom path.
echo SETUP: Configure Keycloak Context-Root
# Note: in case Keycloak was initialized with another Context-Path (e.g. /auth by default), it might be necessary to adjust the base_url's and redirect_uri's of the admin clients in the database!
# For example for /keycloak/auth use: keycloak/auth
set contextPath=${env.KEYCLOAK_CONTEXT_PATH:keycloak/auth}
/subsystem=keycloak-server/:write-attribute(name="web-context",value=$contextPath)
This will configure the "web-context" of the Keycloak-Server Subsystem to the new path. After that, the standalone(-ha).xml config
file should contain something like this:
<subsystem xmlns="urn:jboss:domain:keycloak-server:1.1">
<web-context>keycloak/auth</web-context>
...
Cheers,Thomas