Compare commits

...

2 Commits

Author SHA1 Message Date
d09b644b5f Merge pull request 'feat(hydra-cnpg): configure DSN with more options' (#66) from f/hydra-cnpg_dsn_options into unstable
Reviewed-on: #66
Reviewed-by: wpetit <wpetit@cadoles.com>
Reviewed-by: pcaseiro <pcaseiro@cadoles.com>
2025-03-11 15:35:46 +01:00
5e5670dcdf feat(hydra-cnpg): configure DSN with more options 2025-03-07 15:31:59 +01:00
2 changed files with 5 additions and 1 deletions

View File

@ -26,4 +26,4 @@
path: "/spec/template/spec/containers/0/env/-"
value:
name: DSN
value: "postgres://$(HYDRA_DATABASE_USER):$(HYDRA_DATABASE_PASSWORD)@$(HYDRA_DATABASE_SERVICE_NAME):5432/hydra?sslmode=disable&max_conns=$(HYDRA_DATABASE_MAX_CONN)"
value: "postgres://$(HYDRA_DATABASE_USER):$(HYDRA_DATABASE_PASSWORD)@$(HYDRA_DATABASE_SERVICE_NAME):5432/hydra?sslmode=disable&max_conns=$(HYDRA_DATABASE_MAX_CONN)&max_idle_conns=$(HYDRA_DATABASE_MAX_IDLE_CONNS)&max_conn_lifetime=$(HYDRA_DATABASE_MAX_CONN_LIFETIME)&max_conn_idle_time=$(HYDRA_DATABASE_MAX_CONN_IDLE_TIME)&connect_timeout=$(HYDRA_DATABASE_CONNECT_TIMEOUT)"

View File

@ -31,6 +31,10 @@ configMapGenerator:
- URLS_LOGOUT=http://hydra-logout-app/logout
- HYDRA_SERVE_ALL_ARGS=--dev
- HYDRA_DATABASE_MAX_CONN="10"
- HYDRA_DATABASE_MAX_IDLE_CONNS="5"
- HYDRA_DATABASE_MAX_CONN_LIFETIME="0" # Unlimited. ms, s, m, h
- HYDRA_DATABASE_MAX_CONN_IDLE_TIME="0" # Unlimited. ms, s, m, h
- HYDRA_DATABASE_CONNECT_TIMEOUT="0" # Unlimited
- SERVE_ADMIN_REQUEST_LOG_DISABLE_FOR_HEALTH="true"
- LOG_LEVEL=info