Forgejo: limit db connections
This commit is contained in:
parent
6a0d65fd61
commit
b38a17e8f2
3 changed files with 4 additions and 0 deletions
|
@ -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:
|
||||||
|
|
|
@ -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]
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue