Skip to content

Instantly share code, notes, and snippets.

@vincentchalamon
Created June 1, 2023 13:03
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 vincentchalamon/81ab81fbe19d36d4ea75d78c6a5388c3 to your computer and use it in GitHub Desktop.
Save vincentchalamon/81ab81fbe19d36d4ea75d78c6a5388c3 to your computer and use it in GitHub Desktop.
# ...
# Matches requests for OIDC routes
@oidc expression path('/oidc/*')
route {
# ...
reverse_proxy @oidc http://{$OIDC_UPSTREAM}
}
version: "3.8"
services:
# ...
keycloak:
image: bitnami/keycloak:21-debian-11
environment:
# ...
# Must finish with a trailing slash (https://github.com/bitnami/charts/issues/10885#issuecomment-1414279144)
KEYCLOAK_HTTP_RELATIVE_PATH: /oidc/
# https://www.keycloak.org/server/hostname
KC_HOSTNAME_URL: https://${SERVER_NAME:-localhost}/oidc/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment