From 154ce261daf39d69303669c050ad6d0cd8877c88 Mon Sep 17 00:00:00 2001 From: Gauthier DUPONT Date: Tue, 8 Apr 2025 15:08:13 +0200 Subject: [PATCH] feat(altcha) #4543 : add altcha to hydra sql theme --- components/hydra-oidc/kustomization.yaml | 4 ++-- components/hydra-sql/kustomization.yaml | 9 +++++++++ components/hydra-sql/resources/hydra-sql-deployment.yaml | 4 ++-- 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/components/hydra-oidc/kustomization.yaml b/components/hydra-oidc/kustomization.yaml index 624818f..9d340bb 100644 --- a/components/hydra-oidc/kustomization.yaml +++ b/components/hydra-oidc/kustomization.yaml @@ -13,8 +13,8 @@ configMapGenerator: - name: hydra-oidc-env behavior: create literals: - - APP_ENV=prod - - APP_DEBUG=false + - APP_ENV=dev + - APP_DEBUG=true - PHP_FPM_MEMORY_LIMIT=256m - NGINX_APP_SERVER_LISTEN=80 - HYDRA_ADMIN_BASE_URL=http://hydra-dispatcher diff --git a/components/hydra-sql/kustomization.yaml b/components/hydra-sql/kustomization.yaml index 0504eb2..47dbc09 100644 --- a/components/hydra-sql/kustomization.yaml +++ b/components/hydra-sql/kustomization.yaml @@ -13,6 +13,8 @@ configMapGenerator: - name: hydra-sql-env behavior: create literals: + - APP_ENV=dev + - APP_DEBUG=true - ISSUER_URL="http://localhost:8000" - BASE_URL='http://localhost:8080' - HYDRA_ADMIN_BASE_URL='http://hydra:4445/admin' @@ -24,6 +26,13 @@ configMapGenerator: - DB_PASSWORD="makeMeASecret" - REDIS_DSN="redis://redis:6379" - PEPPER="MakeMeABigSecret" + - ALTCHA_HOST='http://altcha:3333' + - ALTCHA_BASE_URL='' + - ALTCHA_DEBUG=false + - ALTCHA_WORKERS=8 + - ALTCHA_DELAY=100 + - ALTCHA_MOCK_ERROR=false + - ALTCHA_ENABLED=true - name: sql-login-config files: - ./files/sql_login.yaml diff --git a/components/hydra-sql/resources/hydra-sql-deployment.yaml b/components/hydra-sql/resources/hydra-sql-deployment.yaml index 73a6709..e673f16 100644 --- a/components/hydra-sql/resources/hydra-sql-deployment.yaml +++ b/components/hydra-sql/resources/hydra-sql-deployment.yaml @@ -21,7 +21,7 @@ spec: spec: containers: - name: hydra-sql-fpm - image: reg.cadoles.com/cadoles/hydra-sql-base:2025.3.7-develop.1415.7239d84 + image: reg.cadoles.com/gdupont/hydra-sql-base:test-hydra5 imagePullPolicy: IfNotPresent args: ["/usr/sbin/php-fpm81", "-F", "-e"] readinessProbe: @@ -68,7 +68,7 @@ spec: subPath: 03_base.ini - name: hydra-sql-caddy - image: reg.cadoles.com/cadoles/hydra-sql-base:2025.3.7-develop.1415.7239d84 + image: reg.cadoles.com/gdupont/hydra-sql-base:test-hydra5 imagePullPolicy: IfNotPresent args: ["/usr/sbin/caddy", "run", "--adapter", "caddyfile", "--config", "/etc/caddy/Caddyfile"] readinessProbe: