Fix keycloak weird logins

This commit is contained in:
patdyn 2024-08-30 16:56:59 +02:00
parent 81cc7510c1
commit e7bd7fc964
3 changed files with 7 additions and 4 deletions

View file

@ -62,7 +62,7 @@
(->
(yaml/load-as-edn "keycloak/configmap.yaml")
(cm/replace-all-matching "NAMESPACE" namespace)
(cm/replace-all-matching "FQDN" (str "https://" fqdn)))))
(cm/replace-all-matching "FQDN" fqdn))))
(defn-spec generate-service cp/map-or-seq?
[config config?]

View file

@ -8,9 +8,11 @@ metadata:
data:
KC_HTTPS_CERTIFICATE_FILE: /etc/certs/tls.crt
KC_HTTPS_CERTIFICATE_KEY_FILE: /etc/certs/tls.key
# This is the hostname under which the keycloak is accessible on the internet
# This hostname actually needs to an url specifying a scheme from which a port is derived
# We trust our traefik to properly set headers
# see: https://www.keycloak.org/server/reverseproxy & https://www.keycloak.org/server/hostname
# and: https://doc.traefik.io/traefik/getting-started/faq/#what-are-the-forwarded-headers-when-proxying-http-requests
KC_HOSTNAME: FQDN
KC_PROXY_HEADERS: xforwarded
KC_DB: postgres
KC_DB_URL_HOST: postgresql-service
KC_DB_URL_PORT: "5432"

View file

@ -29,7 +29,8 @@
:data
{:KC_HTTPS_CERTIFICATE_FILE "/etc/certs/tls.crt",
:KC_HTTPS_CERTIFICATE_KEY_FILE "/etc/certs/tls.key",
:KC_HOSTNAME "https://test.de" ,
:KC_HOSTNAME "test.de" ,
:KC_PROXY_HEADERS "xforwarded" ,
:KC_DB "postgres",
:KC_DB_URL_HOST "postgresql-service",
:KC_DB_URL_PORT "5432",