file-uploader-crystal/config/config.yml

37 lines
861 B
YAML
Raw Normal View History

2024-08-05 12:11:38 -04:00
files: "./files"
thumbnails: "./thumbnails"
2024-08-10 21:13:37 -04:00
generateThumbnails: false
2024-08-05 12:11:38 -04:00
db: "./db.sqlite3"
2024-08-10 21:13:37 -04:00
dbTableName: "files"
adminEnabled: false
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: 3600
torExitNodesUrl: "https://www.dan.me.uk/torlist/?exit"
torExitNodesFile: "./torexitnodes.txt"
torMessage: "TOR IS BLOCKED!"
# 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
2024-08-10 21:13:37 -04:00
deleteFilesAfter: 7
2024-08-05 12:11:38 -04:00
# In seconds
2024-08-10 21:13:37 -04:00
deleteFilesCheck: 1800
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/"