# Environment File for Keycloak 
# Documentation can be found here: 
# @see https://www.keycloak.org/server/containers

KC_HOSTNAME=                    {{ KEYCLOAK_URL }}
KC_HTTP_ENABLED=                true

# Health Checks
# @see https://quarkus.io/guides/smallrye-health
KC_HEALTH_ENABLED=              {{ KEYCLOAK_HEALTH_ENABLED | lower }}
KC_METRICS_ENABLED=             true

# Database
KC_DB=                          {{ database_type }}
KC_DB_URL=                      {{ database_url_jdbc }}
KC_DB_USERNAME=                 {{ database_username }}
KC_DB_PASSWORD=                 {{ database_password }}

# Credentials

## Bootstrap
KC_BOOTSTRAP_ADMIN_USERNAME="{{ KEYCLOAK_BOOTSTRAP_ADMIN_USERNAME }}"
KC_BOOTSTRAP_ADMIN_PASSWORD="{{ KEYCLOAK_BOOTSTRAP_ADMIN_PASSWORD }}"

## Permanent
KEYCLOAK_PERMANENT_ADMIN_USERNAME="{{ KEYCLOAK_PERMANENT_ADMIN_USERNAME }}"
KEYCLOAK_PERMANENT_ADMIN_PASSWORD="{{ KEYCLOAK_PERMANENT_ADMIN_PASSWORD }}"

# Enable detailed logs
{% if MODE_DEBUG | bool %}
KC_LOG_LEVEL=DEBUG
KC_LOG_CONSOLE_ENABLED=true
{% endif %}