ShareX_Storage/config.yaml
2024-09-28 21:36:04 +02:00

45 lines
1.6 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
# Should a frontend to view and manage uploads be exposed?
frontend: True
# Should thumbnails of uploaded files be created for frontend viewing.
thumbnails: True
# Directory for storing thumbnails
thumbnail_path: 'data/thumbs'
# Strategy for creating thumbnails. Possible values are:
# on-upload: Creates a thumbnail when uploading a file.
# on-request: Creates a thumbnail when requested by the frontend.
# both: Creates a thumbnail on request if one hasn't been created on upload.
thumbnail_strategy: 'both'