1
0
dwelling-upload/configs/config.yaml

29 lines
997 B
YAML
Raw Normal View History

# Sets network type (could be tcp{,4,6}, unix)
# and address:port or /path/to/unix.sock to
# listen on.
listen_on: "unix /var/run/dwelling-upload/sock"
# Salt for hash of uploaded files.
2022-03-06 22:40:39 +04:00
# Aim is to make links bruteforcing useless.
2022-02-07 04:47:07 +04:00
hash_salt: "iyP3oZWHI3xO3XBF7s78Vg"
# Logging options.
log:
# Output messages to stdout as well as to theirs files.
stdout: true
# dwelling-upload logs.
error: "/var/log/dwelling-upload/error.log"
upload: "/var/log/dwelling-upload/upload.log"
download: "/var/log/dwelling-upload/download.log"
2022-07-01 03:26:48 +04:00
delete: "/var/log/dwelling-upload/delete.log"
# dwelling-upload-clean logs.
clean: "/var/log/dwelling-upload/clean.log"
clean_error: "/var/log/dwelling-upload/clean_error.log"
2022-02-06 02:22:23 +04:00
uploads:
# Path where to put uploaded files.
2022-02-06 02:22:23 +04:00
directory: "/srv/uploads"
limits:
# Maximum size of a file in MiB.
2022-02-07 04:47:07 +04:00
file_size: 128
# Amount of hours file will be keeped for.
2022-02-06 02:22:23 +04:00
keep_for_hours: 48
# Maximum size of a whole storage in MiB.
2022-02-07 04:47:07 +04:00
storage: 204800