From 93d8997f6ff1fa7c0536c3d37400177206019afe Mon Sep 17 00:00:00 2001 From: William Petit Date: Tue, 16 Aug 2022 15:30:08 +0200 Subject: [PATCH] Injection variable TRUSTED_PROXIES --- templates/cadoles-pod-hydra-dispatcher-v1.conf.j2 | 1 + templates/cadoles-pod-hydra-oidc-v1.conf.j2 | 1 + 2 files changed, 2 insertions(+) diff --git a/templates/cadoles-pod-hydra-dispatcher-v1.conf.j2 b/templates/cadoles-pod-hydra-dispatcher-v1.conf.j2 index 925a56d..be5919b 100644 --- a/templates/cadoles-pod-hydra-dispatcher-v1.conf.j2 +++ b/templates/cadoles-pod-hydra-dispatcher-v1.conf.j2 @@ -18,4 +18,5 @@ PODMAN_ARGS="\ -e 'DEFAULT_LOCALE={{ hydra_dispatcher_default_locale }}' \ -e 'APP_LOCALES={{ hydra_dispatcher_available_locales | join(',') }}' \ -e 'HYDRA_ADMIN_AUTHORIZED_HOSTS={{ hydra_dispatcher_admin_authorized_hosts | join(',') }}' \ + -e 'TRUSTED_PROXIES=127.0.0.1,10.0.2.0/24' \ " \ No newline at end of file diff --git a/templates/cadoles-pod-hydra-oidc-v1.conf.j2 b/templates/cadoles-pod-hydra-oidc-v1.conf.j2 index a366c26..85584d6 100644 --- a/templates/cadoles-pod-hydra-oidc-v1.conf.j2 +++ b/templates/cadoles-pod-hydra-oidc-v1.conf.j2 @@ -18,4 +18,5 @@ PODMAN_ARGS="\ -e 'OIDC_SCOPE={{ hydra_oidc_scope }}' \ -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' \ " \ No newline at end of file