2022-02-08 23:09:19 +04:00
|
|
|
# Sets network type (could be tcp{,4,6}, unix)
|
2022-02-17 02:56:36 +04:00
|
|
|
# and address:port or /path/to/unix.sock to
|
2022-02-08 23:09:19 +04:00
|
|
|
# listen on.
|
2022-02-17 02:56:36 +04:00
|
|
|
listen_on: "unix /tmp/dwelling-upload.sock"
|
2022-02-08 23:09:19 +04:00
|
|
|
# Salt for hash of uploaded files.
|
|
|
|
# Aim is to make useless a bruteforce of links.
|
2022-02-07 04:47:07 +04:00
|
|
|
hash_salt: "iyP3oZWHI3xO3XBF7s78Vg"
|
2022-02-08 23:09:19 +04:00
|
|
|
# User a program runs as. Make sure that all
|
|
|
|
# paths are accessible by that user.
|
2022-02-07 20:34:04 +04:00
|
|
|
user: "dwupload"
|
2022-02-08 23:09:19 +04:00
|
|
|
# Chroot directory. No chrooting if empty.
|
|
|
|
# Make sure all directories are created within
|
|
|
|
# chroot directory. All paths becomes related
|
|
|
|
# to chroot.
|
2022-02-08 22:48:56 +04:00
|
|
|
chroot: ""
|
2022-02-08 23:09:19 +04:00
|
|
|
# Logging options.
|
2022-02-07 20:34:04 +04:00
|
|
|
log:
|
2022-02-08 23:09:19 +04:00
|
|
|
# Output messages to stdout as well as to theirs files.
|
2022-02-07 21:23:54 +04:00
|
|
|
stdout: true
|
2022-02-08 23:09:19 +04:00
|
|
|
# dwelling-upload logs.
|
2022-02-07 20:34:04 +04:00
|
|
|
error: "/var/log/dwelling-upload/error.log"
|
|
|
|
upload: "/var/log/dwelling-upload/upload.log"
|
|
|
|
download: "/var/log/dwelling-upload/download.log"
|
2022-02-08 23:09:19 +04:00
|
|
|
# dwelling-upload-clear logs.
|
|
|
|
clear: "/var/log/dwelling-upload/clear.log"
|
|
|
|
clear_error: "/var/log/dwelling-upload/clear_error.log"
|
2022-02-06 02:22:23 +04:00
|
|
|
uploads:
|
2022-02-08 23:09:19 +04:00
|
|
|
# Path where to put uploaded files.
|
2022-02-06 02:22:23 +04:00
|
|
|
directory: "/srv/uploads"
|
|
|
|
limits:
|
2022-02-08 23:09:19 +04:00
|
|
|
# Maximum size of a file in MiB.
|
2022-02-07 04:47:07 +04:00
|
|
|
file_size: 128
|
2022-02-08 23:09:19 +04:00
|
|
|
# Amount of hours file will be keeped for.
|
2022-02-06 02:22:23 +04:00
|
|
|
keep_for_hours: 48
|
2022-02-08 23:09:19 +04:00
|
|
|
# Maximum size of a whole storage in MiB.
|
2022-02-07 04:47:07 +04:00
|
|
|
storage: 204800
|