diff --git a/defaults/main.yml b/defaults/main.yml index 7f605bf..d7064be 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -199,6 +199,7 @@ hydra_oidc_post_logout_redirect_url: hydra_oidc_scope: openid email hydra_oidc_client_id: hydra_oidc_client_secret: +hydra_oidc_additionnal_env: {} hydra_oidc_attributes_rewrite_rules: email: diff --git a/templates/cadoles-pod-hydra-oidc-v1.conf.j2 b/templates/cadoles-pod-hydra-oidc-v1.conf.j2 index a2432e9..7dbc700 100644 --- a/templates/cadoles-pod-hydra-oidc-v1.conf.j2 +++ b/templates/cadoles-pod-hydra-oidc-v1.conf.j2 @@ -19,4 +19,7 @@ PODMAN_ARGS="\ -e 'CLIENT_ID_FC={{ hydra_oidc_client_id }}' \ -e 'CLIENT_SECRET_FC={{ hydra_oidc_client_secret }}' \ -e 'TRUSTED_PROXIES=127.0.0.1,10.0.2.0/24' \ + {% for key,value in hydra_oidc_additionnal_env.items() %} + -e '{{ key }}={{ value }}' \ + {% endfor %} " \ No newline at end of file