1{
2  "common": {
3    "idle_timeout": 15,
4    "upload_mode": 0,
5    "actions": {
6      "execute_on": [],
7      "execute_sync": [],
8      "hook": ""
9    },
10    "setstat_mode": 0,
11    "temp_path": "",
12    "proxy_protocol": 0,
13    "proxy_allowed": [],
14    "startup_hook": "",
15    "post_connect_hook": "",
16    "post_disconnect_hook": "",
17    "data_retention_hook": "",
18    "max_total_connections": 0,
19    "max_per_host_connections": 20,
20    "defender": {
21      "enabled": false,
22      "ban_time": 30,
23      "ban_time_increment": 50,
24      "threshold": 15,
25      "score_invalid": 2,
26      "score_valid": 1,
27      "score_limit_exceeded": 3,
28      "observation_time": 30,
29      "entries_soft_limit": 100,
30      "entries_hard_limit": 150,
31      "safelist_file": "",
32      "blocklist_file": ""
33    },
34    "rate_limiters": [
35      {
36        "average": 0,
37        "period": 1000,
38        "burst": 1,
39        "type": 2,
40        "protocols": [
41          "SSH",
42          "FTP",
43          "DAV",
44          "HTTP"
45        ],
46        "allow_list": [],
47        "generate_defender_events": false,
48        "entries_soft_limit": 100,
49        "entries_hard_limit": 150
50      }
51    ]
52  },
53  "sftpd": {
54    "bindings": [
55      {
56        "port": 2022,
57        "address": "",
58        "apply_proxy_config": true
59      }
60    ],
61    "max_auth_tries": 0,
62    "banner": "",
63    "host_keys": [],
64    "kex_algorithms": [],
65    "ciphers": [],
66    "macs": [],
67    "trusted_user_ca_keys": [],
68    "login_banner_file": "",
69    "enabled_ssh_commands": [
70      "md5sum",
71      "sha1sum",
72      "cd",
73      "pwd",
74      "scp"
75    ],
76    "keyboard_interactive_authentication": false,
77    "keyboard_interactive_auth_hook": "",
78    "password_authentication": true,
79    "folder_prefix": ""
80  },
81  "ftpd": {
82    "bindings": [
83      {
84        "port": 0,
85        "address": "",
86        "apply_proxy_config": true,
87        "tls_mode": 0,
88        "force_passive_ip": "",
89        "passive_ip_overrides": [],
90        "client_auth_type": 0,
91        "tls_cipher_suites": [],
92        "passive_connections_security": 0,
93        "active_connections_security": 0,
94        "debug": false
95      }
96    ],
97    "banner": "",
98    "banner_file": "",
99    "active_transfers_port_non_20": true,
100    "passive_port_range": {
101      "start": 50000,
102      "end": 50100
103    },
104    "disable_active_mode": false,
105    "enable_site": false,
106    "hash_support": 0,
107    "combine_support": 0,
108    "certificate_file": "",
109    "certificate_key_file": "",
110    "ca_certificates": [],
111    "ca_revocation_lists": []
112  },
113  "webdavd": {
114    "bindings": [
115      {
116        "port": 0,
117        "address": "",
118        "enable_https": false,
119        "client_auth_type": 0,
120        "tls_cipher_suites": [],
121        "prefix": "",
122        "proxy_allowed": []
123      }
124    ],
125    "certificate_file": "",
126    "certificate_key_file": "",
127    "ca_certificates": [],
128    "ca_revocation_lists": [],
129    "cors": {
130      "enabled": false,
131      "allowed_origins": [],
132      "allowed_methods": [],
133      "allowed_headers": [],
134      "exposed_headers": [],
135      "allow_credentials": false,
136      "max_age": 0
137    },
138    "cache": {
139      "users": {
140        "expiration_time": 0,
141        "max_size": 50
142      },
143      "mime_types": {
144        "enabled": true,
145        "max_size": 1000
146      }
147    }
148  },
149  "data_provider": {
150    "driver": "sqlite",
151    "name": "/var/db/sftpgo/sftpgo.db",
152    "host": "",
153    "port": 0,
154    "username": "",
155    "password": "",
156    "sslmode": 0,
157    "connection_string": "",
158    "sql_tables_prefix": "",
159    "track_quota": 2,
160    "delayed_quota_update": 0,
161    "pool_size": 0,
162    "users_base_dir": "",
163    "actions": {
164      "execute_on": [],
165      "execute_for": [],
166      "hook": ""
167    },
168    "external_auth_hook": "",
169    "external_auth_scope": 0,
170    "credentials_path": "credentials",
171    "prefer_database_credentials": false,
172    "pre_login_hook": "",
173    "post_login_hook": "",
174    "post_login_scope": 0,
175    "check_password_hook": "",
176    "check_password_scope": 0,
177    "password_hashing": {
178      "bcrypt_options": {
179        "cost": 10
180      },
181      "argon2_options": {
182        "memory": 65536,
183        "iterations": 1,
184        "parallelism": 2
185      },
186      "algo": "bcrypt"
187    },
188    "password_validation": {
189      "admins": {
190        "min_entropy": 0
191      },
192      "users": {
193        "min_entropy": 0
194      }
195    },
196    "password_caching": true,
197    "update_mode": 0,
198    "skip_natural_keys_validation": false,
199    "create_default_admin": false,
200    "is_shared": 0
201  },
202  "httpd": {
203    "bindings": [
204      {
205        "port": 8080,
206        "address": "",
207        "enable_web_admin": true,
208        "enable_web_client": true,
209        "enable_https": false,
210        "client_auth_type": 0,
211        "tls_cipher_suites": [],
212        "proxy_allowed": [],
213        "hide_login_url": 0,
214        "render_openapi": true
215      }
216    ],
217    "templates_path": "/usr/local/share/sftpgo/templates",
218    "static_files_path": "/usr/local/share/sftpgo/static",
219    "openapi_path": "openapi",
220    "backups_path": "backups",
221    "web_root": "",
222    "certificate_file": "",
223    "certificate_key_file": "",
224    "ca_certificates": [],
225    "ca_revocation_lists": [],
226    "signing_passphrase": "",
227    "max_upload_file_size": 1048576000,
228    "cors": {
229      "enabled": false,
230      "allowed_origins": [],
231      "allowed_methods": [],
232      "allowed_headers": [],
233      "exposed_headers": [],
234      "allow_credentials": false,
235      "max_age": 0
236    }
237  },
238  "telemetry": {
239    "bind_port": 10000,
240    "bind_address": "127.0.0.1",
241    "enable_profiler": false,
242    "auth_user_file": "",
243    "certificate_file": "",
244    "certificate_key_file": "",
245    "tls_cipher_suites": []
246  },
247  "http": {
248    "timeout": 20,
249    "retry_wait_min": 2,
250    "retry_wait_max": 30,
251    "retry_max": 3,
252    "ca_certificates": [],
253    "certificates": [],
254    "skip_tls_verify": false,
255    "headers": []
256  },
257  "kms": {
258    "secrets": {
259      "url": "",
260      "master_key": "",
261      "master_key_path": ""
262    }
263  },
264  "mfa": {
265    "totp": [
266      {
267        "name": "Default",
268        "issuer": "SFTPGo",
269        "algo": "sha1"
270      }
271    ]
272  },
273  "smtp": {
274    "host": "",
275    "port": 25,
276    "from": "",
277    "user": "",
278    "password": "",
279    "auth_type": 0,
280    "encryption": 0,
281    "domain": "",
282    "templates_path": "/usr/local/share/sftpgo/templates"
283  },
284  "plugins": []
285}