Skip to content

Instantly share code, notes, and snippets.

@BlackYoup
Created February 16, 2022 23:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BlackYoup/6ac91c2d970b645707e38bc597796d1b to your computer and use it in GitHub Desktop.
Save BlackYoup/6ac91c2d970b645707e38bc597796d1b to your computer and use it in GitHub Desktop.
Keycloak configuration (db + reverse proxy)
cat << EOF > ./conf/keycloak.conf
db=postgres
db-username=${POSTGRESQL_ADDON_USER}
db-password=${POSTGRESQL_ADDON_PASSWORD}
db-url=jdbc:postgresql://${POSTGRESQL_ADDON_HOST}:${POSTGRESQL_ADDON_PORT}/${POSTGRESQL_ADDON_DB}
proxy=edge
hostname=${KEYCLOAK_HOSTNAME}
# Since the migration to Quarkus, Keycloak dropped the /auth/ prefix from their routes compared to the previous versions
http-relative-path=/auth
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment