2023-12-12 13:20:44 +01:00
|
|
|
# Enable upload authorization
|
2018-06-10 15:49:53 +02:00
|
|
|
auth: True
|
|
|
|
|
2023-12-12 13:20:44 +01:00
|
|
|
# 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>"
|
2018-06-10 15:49:53 +02:00
|
|
|
tokens:
|
2023-12-12 13:20:44 +01:00
|
|
|
- 'example_token'
|
2018-06-10 15:49:53 +02:00
|
|
|
|
2023-12-12 13:20:44 +01:00
|
|
|
# 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.
|
2018-06-10 15:49:53 +02:00
|
|
|
del_crypt_key: 'secret delete link key'
|
|
|
|
|
2023-12-12 13:20:44 +01:00
|
|
|
# Maximum file size in bytes (100MB in this example)
|
2018-06-10 15:49:53 +02:00
|
|
|
max_filesize: 1024 ** 2 * 100
|
|
|
|
|
2023-12-12 13:20:44 +01:00
|
|
|
# Directory where uploaded files will be stored
|
2018-06-10 15:49:53 +02:00
|
|
|
data_path: 'data'
|
|
|
|
|
2023-12-12 13:20:44 +01:00
|
|
|
# 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
|
2018-06-10 15:49:53 +02:00
|
|
|
url_hash_len: 6
|
|
|
|
|
2023-12-12 13:20:44 +01:00
|
|
|
# Base URL for routing to this service. The trailing slash is optional.
|
|
|
|
base_url: 'https://your-domain.net/f/'
|
2018-06-10 15:49:53 +02:00
|
|
|
|
2023-12-12 13:20:44 +01:00
|
|
|
# Should file extensions be appended to the generated links.
|
|
|
|
# Links always work with or without file extensions (like puush.me).
|
|
|
|
show_ext: True
|