ShareX_Storage/config.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