Use configured port for postgres pooler

This commit is contained in:
Daniel Berteaud 2024-01-19 15:03:54 +01:00
parent f25238e960
commit cc4a1d0608
2 changed files with 1 additions and 2 deletions

View File

@ -125,7 +125,6 @@ job "lemonldap-ng" {
}
# Use a template block instead of env {} so we can fetch values from vault
template {
data = <<_EOT

View File

@ -110,7 +110,7 @@ _EOT
PGHOST=[[ $c.postgres.host ]]
PGDATABASE=[[ $c.postgres.database ]]
[[- if ne $c.postgres.pooler.engine "none" ]]
PGPORT=6432
PGPORT=[[ $c.postgres.pooler.port ]]
PGUSER=[[ .instance ]]
PGPASSWORD={{ env "NOMAD_ALLOC_ID" }}
[[- else ]]