Starting the Keycloak
If Keycloak is started in a different mode (switching from development mode to production mode or vice versa), an additional step is required. Keycloak X is based on Quarkus and compiles configuration files in advance for faster startup and better performance. This step is called "building" the application. If the step is not done after the configuration changes (e.g., database configuration), the last configuration changes may not be applied.
In the proxy setup described here, Keycloak must be started in production mode, although no certificates and no HTTPS configuration need to be provided. The Keycloak startup scripts included in the X4 BPMS usually start the Keycloak in development mode. If that is the case, you can start Keycloak in production mode using the following options:
To start the Keycloak manually
- Execute
/c:/X4/keycloak/bin/kc.sh build
to compile the Keycloak configuration in advance. - Execute
/c:/X4/keycloak/bin/kc.sh start
to start the Keycloak in production mode.
To modify the start scripts
- Execute
/c:/X4/keycloak/bin/kc.sh build
to compile the Keycloak configuration in advance. - In
/c:/X4/startKeycloak.sh
, modify the entrystart-dev
instart
. Now, the Keycloak is started in production mode every time the script is executed.
To modify the daemon configuration file
- Führen Sie
/opt/X4/keycloak/bin/kc.sh build
to compile the Keycloak configuration in advance. - Modify the
ExecStart
section in the/etc/systemd/system/X4-Authentication-Provider.service
file as follows: Replacestart-dev
withstart
.