mirror of
https://github.com/drakkan/sftpgo.git
synced 2024-11-22 07:30:25 +00:00
e7eb3476b7
The update is atomic so no transaction is needed. Addionally a transaction will ask for a new connection to the pool and this can deadlock if the pool has a max connection limit too low. Also make configurable the pool size instead of hard code to the cpu number. Fixes #47
40 lines
772 B
JSON
40 lines
772 B
JSON
{
|
|
"sftpd": {
|
|
"bind_port": 2022,
|
|
"bind_address": "",
|
|
"idle_timeout": 15,
|
|
"max_auth_tries": 0,
|
|
"umask": "0022",
|
|
"banner": "",
|
|
"upload_mode": 0,
|
|
"actions": {
|
|
"execute_on": [],
|
|
"command": "",
|
|
"http_notification_url": ""
|
|
},
|
|
"keys": [],
|
|
"enable_scp": false,
|
|
"kex_algorithms": [],
|
|
"ciphers": [],
|
|
"macs": [],
|
|
"login_banner_file": ""
|
|
},
|
|
"data_provider": {
|
|
"driver": "sqlite",
|
|
"name": "sftpgo.db",
|
|
"host": "",
|
|
"port": 5432,
|
|
"username": "",
|
|
"password": "",
|
|
"sslmode": 0,
|
|
"connection_string": "",
|
|
"users_table": "users",
|
|
"manage_users": 1,
|
|
"track_quota": 2,
|
|
"pool_size": 0
|
|
},
|
|
"httpd": {
|
|
"bind_port": 8080,
|
|
"bind_address": "127.0.0.1"
|
|
}
|
|
}
|