You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
56 lines
2.0 KiB
TOML
56 lines
2.0 KiB
TOML
[server]
|
|
host = "0.0.0.0"
|
|
port = 8282
|
|
|
|
# Please enable this if you are using nginx (if you aren't, please do)
|
|
# This should speed up file serving a decent amount.
|
|
# TODO: benchmarks
|
|
nginx_sendfile = false
|
|
|
|
[database] # DATABASE DATABASE JUST LIVING IN THE DATABASE WOOAH
|
|
# What SQL Backend to use
|
|
## Available SQL backends: sqlite, postgres
|
|
sql_backend = "sqlite"
|
|
|
|
# URL for postgres, see below for more information
|
|
# https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-CONNSTRING
|
|
postgres_url = "postgres://ephemeral:changeme@localhost:5432/ephemeral"
|
|
|
|
[logging]
|
|
# Available logging levels
|
|
# info - only show critical errors, and usage information
|
|
# debug - shows super fancy salvo logging plus above.
|
|
level = "info"
|
|
|
|
# Enables/Disables metrics generation
|
|
metrics = true
|
|
|
|
[operations]
|
|
# This changes how long the random filename should be.
|
|
# Leaving it at 6 is good enough for most, since it'll /try/ to regenerate in the case of a collision.
|
|
filename_size = "6"
|
|
|
|
# 1 - time based expiration - last view
|
|
# 2 - size based expiration - larger files expire faster
|
|
# 3 - aggregate score - large files viewed more often last longer than less popular files.
|
|
# 4 - lazy aggregate score - files deleted based on file size and last view, whatever is /longer/
|
|
engine_mode = 1
|
|
|
|
# How often should the system check for old files.
|
|
# Should probably keep this as default. (especially for massive instances)
|
|
cleaner_interval = "1800"
|
|
|
|
# The longest and shortest time a file can be 'alive' on the server.
|
|
file_expiry_max = 365
|
|
file_expiry_min = 7
|
|
# size in bytes - default: 1 Gibibyte
|
|
filesize_max = 1073741824
|
|
|
|
|
|
# Mimetypes that are not allowed to be uploaded.
|
|
# Leave empty to allow all files, and please enter these in lowercase.
|
|
banned_mimetype = ["application/x-msdownload", "application/x-msi", "application/x-silverlight", "application/x-ms-dos-executable"]
|
|
|
|
# Files that should only ever be rendered as plaintext.
|
|
# I REALLY recommend not removing these.
|
|
unsafe_mimetype = ["text/html", "text/javascript", "text/css", "application/x-httpd-php", "application/xhtml+xml"] |