mirror of
https://github.com/RipleyBooya/ssh-tunnel.git
synced 2025-12-15 00:58:39 +01:00
Update pgbouncer.ini
This commit is contained in:
parent
320117f1a8
commit
2d7e21c84e
1 changed files with 7 additions and 4 deletions
|
|
@ -1,12 +1,13 @@
|
||||||
# Configuration PgBouncer
|
# Configuration PgBouncer avec variables d'environnement
|
||||||
[databases]
|
[databases]
|
||||||
* = host=127.0.0.1 port=15432 auth_user=postgres pool_mode=session max_client_conn=100
|
${PG_DB1} = host=127.0.0.1 port=15432 user=${PG_USER1} password=${PG_PW1} pool_mode=session
|
||||||
|
${PG_DB2} = host=127.0.0.1 port=15432 user=${PG_USER2} password=${PG_PW2} pool_mode=session
|
||||||
|
* = host=127.0.0.1 port=15432 user=${PG_DEFAULT_USER} password=${PG_DEFAULT_PW} pool_mode=session
|
||||||
|
|
||||||
[pgbouncer]
|
[pgbouncer]
|
||||||
listen_addr = 0.0.0.0
|
listen_addr = 0.0.0.0
|
||||||
listen_port = 5432
|
listen_port = 5432
|
||||||
auth_type = md5
|
auth_type = any
|
||||||
auth_file = /etc/pgbouncer/userlist.txt
|
|
||||||
admin_users = postgres
|
admin_users = postgres
|
||||||
max_client_conn = 200
|
max_client_conn = 200
|
||||||
default_pool_size = 20
|
default_pool_size = 20
|
||||||
|
|
@ -15,3 +16,5 @@ pool_mode = transaction
|
||||||
server_reset_query = DISCARD ALL
|
server_reset_query = DISCARD ALL
|
||||||
logfile = /var/log/pgbouncer.log
|
logfile = /var/log/pgbouncer.log
|
||||||
pidfile = /var/run/pgbouncer.pid
|
pidfile = /var/run/pgbouncer.pid
|
||||||
|
|
||||||
|
# ⚠️ Variables d'environnement requises ! (chargées depuis `.env`)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue