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 type: str
db_password: db_password:
type: str type: str
db_max_open_conns:
type: int
log_level: log_level:
type: str type: str
log_root_path: log_root_path:

View file

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

View file

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