From 150fbef519595484d057a71b7d6d1fc8d9b60ad4 Mon Sep 17 00:00:00 2001 From: Mauro Mugnaini Date: Wed, 21 Feb 2024 17:09:02 +0100 Subject: [PATCH] Added support for S3 avatar enabling and configuration --- templates/keycloak.conf.j2 | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/templates/keycloak.conf.j2 b/templates/keycloak.conf.j2 index 8ff1b5d..33a61cb 100644 --- a/templates/keycloak.conf.j2 +++ b/templates/keycloak.conf.j2 @@ -44,6 +44,13 @@ hostname={{ keycloak_hostname }} spi-avatar-storage-avatar-storage-file-avatar-folder={{ keycloak_external_avatar_dir}} {% endif %} +{% if keycloak_s3_avatar_enabled %} +spi-avatar-storage-avatar-storage-s3-server-url={{ keycloak_s3_avatar_url }} +spi-avatar-storage-avatar-storage-s3-access-key={{ keycloak_s3_avatar_key }} +spi-avatar-storage-avatar-storage-s3-secret-key={{ keycloak_s3_avatar_secret }} +spi-avatar-storage-avatar-storage-s3-root-bucket={{ keycloak_s3_avatar_bucket }} +{% endif %} + {% if keycloak_cluster %} # Do not attach route to cookies and rely on the session affinity capabilities from reverse proxy spi-sticky-session-encoder-infinispan-should-attach-route={{ keycloak_reverse_proxy_infinispan_attach_route }}