Forgejo: limit db connections

This commit is contained in:
Ivan R. 2024-12-15 22:03:37 +05:00
parent 6a0d65fd61
commit b38a17e8f2
Signed by: lumin
GPG key ID: E0937DC7CD6D3817
3 changed files with 4 additions and 0 deletions

View file

@ -38,6 +38,8 @@ argument_specs:
type: str
db_password:
type: str
db_max_open_conns:
type: int
log_level:
type: str
log_root_path:

View file

@ -9,6 +9,7 @@ HOST={{ db_host }}
NAME={{ db_name }}
USER={{ db_user }}
PASSWD={{ db_password }}
MAX_OPEN_CONNS={{ db_max_open_conns }}
[storage]

View file

@ -26,6 +26,7 @@ db_host: postgresql:5432
db_name: forgejo
db_user: forgejo
db_password: ""
db_max_open_conns: 10
log_level: warn
log_root_path: /data/log