ShareX_Storage/config.yaml

30 lines
1.1 KiB
YAML
Raw Normal View History

# Enable upload authorization
2018-06-10 15:49:53 +02:00
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>"
2018-06-10 15:49:53 +02:00
tokens:
- 'example_token'
2018-06-10 15:49:53 +02: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'
# Maximum file size in bytes (100MB in this example)
2018-06-10 15:49:53 +02:00
max_filesize: 1024 ** 2 * 100
# Directory where uploaded files will be stored
2018-06-10 15:49:53 +02:00
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
2018-06-10 15:49:53 +02:00
url_hash_len: 6
# 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
# Should file extensions be appended to the generated links.
# Links always work with or without file extensions (like puush.me).
show_ext: True