switch to config file and implement src path filter

This commit is contained in:
ston1th 2022-10-07 22:57:54 +02:00
commit a6b9602821
30 changed files with 11907 additions and 60 deletions

40
config.yaml Normal file
View file

@ -0,0 +1,40 @@
server:
# listen addr:port for default http interface
http:
addr: "127.0.0.1:8080"
# listen addr:port for webdav
#webdav:
# addr: ""
# listen addr:port for cache only
#cache:
# addr: ""
# listen addr:port for plain directory listings over http
#plain:
# addr: ""
# regex whitelist for allowed filesystem paths
#path: ""
cache:
# path to metadata file
metadata: "/path/to/metadata.json"
src:
# url path to source files
path: "file:///mnt/nfs"
#path: "sftp://user@src-host:/home/user"
# optional hex encoded encryption key (32 bytes)
#key: ""
dst:
# url path to cache files
path: "file:///mnt/cache"
#path: "sftp://user@dst-host:/home/user"
# optional hex encoded encryption key (32 bytes)
#key: ""
# max parallel preloads
#preloads: 1
# preload buffer size in bytes
#buffer: 8192
# max disk usage quota for the dst cache in GiB
#quota: 1
# block until sftp is connected
#blockSFTP: true