[__matrix_synapse] Wire parameters for PGSQL pool size
This commit is contained in:
parent
7983e341e5
commit
e10ae4d0a7
6 changed files with 15 additions and 1 deletions
|
@ -835,6 +835,8 @@ database:
|
|||
host: "${DATABASE_HOST:?}"
|
||||
user: "${DATABASE_USER:?}"
|
||||
password: "$DATABASE_PASSWORD"
|
||||
cp_min: ${DATABASE_CP_MIN:?}
|
||||
cp_min: ${DATABASE_CP_MAX:?}
|
||||
EOF
|
||||
;;
|
||||
*)
|
||||
|
|
|
@ -39,6 +39,12 @@ database-user
|
|||
database-password
|
||||
Database password, only used with PostgresSQL.
|
||||
|
||||
database-connection-pool-min
|
||||
The minimum number of connections in pool, defaults to 3.
|
||||
|
||||
database-connection-pool-max
|
||||
The maximum number of connections in pool, defaults to 5.
|
||||
|
||||
ldap-uri
|
||||
Address of your LDAP server.
|
||||
|
||||
|
|
|
@ -143,8 +143,10 @@ DATABASE_NAME=$(cat "$__object/parameter/database-name")
|
|||
DATABASE_HOST=$(cat "$__object/parameter/database-host")
|
||||
DATABASE_USER=$(cat "$__object/parameter/database-user")
|
||||
DATABASE_PASSWORD=$(cat "$__object/parameter/database-password")
|
||||
DATABASE_CP_MIN=$(cat "$__object/parameter/database-connection-pool-min")
|
||||
DATABASE_CP_MAX=$(cat "$__object/parameter/database-connection-pool-max")
|
||||
export DATABASE_ENGINE DATABASE_NAME DATABASE_HOST DATABASE_USER \
|
||||
DATABASE_PASSWORD
|
||||
DATABASE_PASSWORD DATABASE_CP_MIN DATABASE_CP_MAX
|
||||
|
||||
# LDAP-based authentication.
|
||||
if [ -f "$__object/parameter/enable-ldap-auth" ]; then
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
5
|
|
@ -0,0 +1 @@
|
|||
3
|
|
@ -1,6 +1,8 @@
|
|||
database-host
|
||||
database-user
|
||||
database-password
|
||||
database-connection-pool-min
|
||||
database-connection-pool-max
|
||||
ldap-uri
|
||||
ldap-base-dn
|
||||
ldap-uid-attribute
|
||||
|
|
Loading…
Reference in a new issue