ad8f290dad
- Configures `max_open` and `max_idle` in default configs to `25`. This changes the previous behaviour of connection pooling where both the values were unset (from default config) and causes unbounded connection limit and no connection reuse. - Configures `db.SetConnMaxLifetime` which sets the maximum time the connection can be reused in a pool. - Sets `max_conn_lifetime` in default config as `5 minutes`. Closes https://github.com/knadh/listmonk/issues/225
15 lines
314 B
TOML
15 lines
314 B
TOML
[app]
|
|
# Interface and port where the app will run its webserver.
|
|
address = "0.0.0.0:9000"
|
|
|
|
# Database.
|
|
[db]
|
|
host = "demo-db"
|
|
port = 5432
|
|
user = "listmonk"
|
|
password = "listmonk"
|
|
database = "listmonk"
|
|
ssl_mode = "disable"
|
|
max_open = 25
|
|
max_idle = 25
|
|
max_lifetime = "300s"
|