file-uploader-crystal/config/config.example.yml

47 lines
1.1 KiB
YAML
Raw Permalink Normal View History

colorize_logs: true
2024-08-05 12:11:38 -04:00
files: "./files"
thumbnails: "./thumbnails"
generateThumbnails: true
db: "./db/db.sqlite3"
adminEnabled: true
adminApiKey: "asd"
2024-08-10 21:13:37 -04:00
fileameLength: 3
2024-08-05 12:11:38 -04:00
# In MiB
size_limit: 512
port: 8080
2024-08-10 21:13:37 -04:00
blockTorAddresses: true
# Every hour
torExitNodesCheck: 1600
torExitNodesUrl: "https://check.torproject.org/exit-addresses"
2024-08-10 21:13:37 -04:00
torExitNodesFile: "./torexitnodes.txt"
torMessage: "TOR IS BLOCKED!"
# Set this to 0 to disable rate limiting
filesPerIP: 2
rateLimitPeriod: 20
rateLimitMessage: ""
# If you define the unix socket, it will only listen on the socket and not the port.
#unix_socket: "/tmp/file-uploader.sock"
2024-08-05 12:11:38 -04:00
# In days
deleteFilesAfter: 7
2024-08-05 12:11:38 -04:00
# In seconds
deleteFilesCheck: 1600
2024-08-10 21:13:37 -04:00
deleteKeyLength: 4
2024-08-05 12:11:38 -04:00
siteInfo: "Whatever you want to put here"
siteWarning: "WARNING!"
log_level: "debug"
2024-08-10 21:13:37 -04:00
blockedExtensions:
2024-08-05 12:11:38 -04:00
- "exe"
# List of useragents that use OpenGraph to gather file information
2024-08-10 21:13:37 -04:00
opengraphUseragents:
- "chatterino-api-cache/"
- "FFZBot/"
- "Twitterbot/"
- "Synapse/"
- "Mastodon/"
# You can leave it empty, or add your own domains.
alternativeDomains:
- "example.com"