BluBb_mADe
6faac9742b
- thrown out the multi-domain support, instead you can now specify the full base url in the config - improved config docs - changed authorization to follow the standard Bearer Token pattern - link response is now simple json - updated and modernized nginx config example - reworked config and argument parsing - removed unnecessary extra file write buffer layer - removed no-cache response header. (why did I do this?) - various minor improvements - clarified hash length limit to be 32 (16 bytes, one aes block)
30 lines
1.1 KiB
YAML
30 lines
1.1 KiB
YAML
# Enable upload authorization
|
|
auth: True
|
|
|
|
# When auth is true, only clients providing one of the valid Bearer token in the HTTP Authorization header are permitted to upload.
|
|
# The token must be included in the HTTP headers using the standard format:
|
|
# "Authorization: Bearer <token>"
|
|
tokens:
|
|
- 'example_token'
|
|
|
|
# To make deletion links work without a token while not having to maintain a database of deletion codes
|
|
# the script encrypts deletion links from file links using this key.
|
|
del_crypt_key: 'secret delete link key'
|
|
|
|
# Maximum file size in bytes (100MB in this example)
|
|
max_filesize: 1024 ** 2 * 100
|
|
|
|
# Directory where uploaded files will be stored
|
|
data_path: 'data'
|
|
|
|
# URL hash length must be a multiple of 2 and can not exceed 32
|
|
# Uploads will start failing if the script can not find a free url hash with 100 random generated ones
|
|
url_hash_len: 6
|
|
|
|
# Base URL for routing to this service. The trailing slash is optional.
|
|
base_url: 'https://your-domain.net/f/'
|
|
|
|
# Should file extensions be appended to the generated links.
|
|
# Links always work with or without file extensions (like puush.me).
|
|
show_ext: True
|