Fijxu
0002c81429
All checks were successful
File-uploader-crystal CI / build (push) Successful in 1m52s
- Add colors to logs - Use static table names instead of config provided ones, it's kinda stupid to give the user an option to set the name of the table if I'm developing it for sqlite
48 lines
1.1 KiB
YAML
48 lines
1.1 KiB
YAML
colorize_logs: true
|
|
files: "./files"
|
|
thumbnails: "./thumbnails"
|
|
generateThumbnails: true
|
|
db: "./db.sqlite3"
|
|
dbTableName: "files"
|
|
adminEnabled: true
|
|
adminApiKey: "asd"
|
|
fileameLength: 3
|
|
# In MiB
|
|
size_limit: 512
|
|
port: 8080
|
|
blockTorAddresses: true
|
|
# Every hour
|
|
torExitNodesCheck: 1600
|
|
torExitNodesUrl: "https://check.torproject.org/exit-addresses"
|
|
torExitNodesFile: "./torexitnodes.txt"
|
|
torMessage: "TOR IS BLOCKED!"
|
|
# Set this to 0 to disable rate limiting
|
|
filesPerIP: 2
|
|
ipTableName: "ips"
|
|
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"
|
|
# In days
|
|
deleteFilesAfter: 1
|
|
# In seconds
|
|
deleteFilesCheck: 1600
|
|
deleteKeyLength: 4
|
|
siteInfo: "Whatever you want to put here"
|
|
siteWarning: "WARNING!"
|
|
log_level: "debug"
|
|
|
|
blockedExtensions:
|
|
- "exe"
|
|
|
|
# List of useragents that use OpenGraph to gather file information
|
|
opengraphUseragents:
|
|
- "chatterino-api-cache/"
|
|
- "FFZBot/"
|
|
- "Twitterbot/"
|
|
- "Synapse/"
|
|
- "Mastodon/"
|
|
|
|
# You can leave it empty, or add your own domains.
|
|
alternativeDomains:
|
|
- "example.com"
|