feat: Use databaseBackend config repace databaseEtcd

databaseBackend config contains type and url sub config, It can facilitate the expansion of other types of databases in the future.
This commit is contained in:
hudeng
2022-02-11 18:14:26 +08:00
committed by André Roth
parent f29449db14
commit 59bf4501e8
8 changed files with 47 additions and 13 deletions
+6 -3
View File
@@ -28,7 +28,10 @@ Configuration file is stored in JSON format (default values shown below):
{
"rootDir": "$HOME/.aptly",
"databaseEtcd": "",
"databaseBackend": {
"type": "",
"url": ""
},
"downloadConcurrency": 4,
"downloadSpeedLimit": 0,
"downloadRetries": 0,
@@ -120,8 +123,8 @@ Options:
the default for downloaded packages (`rootDir`/pool) and
the default for published repositories (`rootDir`/public)
* `databaseEtcd`:
the etcd database connection address is empty by default, which means it is not used
* `databaseBackend`:
the database config; if this config is empty, use levledb backend by default
* `downloadConcurrency`:
is a number of parallel download threads to use when downloading packages