hmac-file-server/config.example.toml

86 lines
1.8 KiB
TOML
Raw Permalink Normal View History

2025-01-15 15:46:43 +01:00
[server]
2025-01-26 09:20:56 +01:00
bind_ip = "0.0.0.0"
2025-01-15 15:46:43 +01:00
listenport = "8080"
unixsocket = false
storagepath = "./uploads"
2025-01-26 09:20:56 +01:00
logfile = "/var/log/hmac-file-server.log"
2025-01-15 15:46:43 +01:00
metricsenabled = true
metricsport = "9090"
minfreebytes = "100MB"
2025-01-26 09:20:56 +01:00
filettl = "8760h"
filettlenabled = true
2025-01-15 15:46:43 +01:00
autoadjustworkers = true
networkevents = true
pidfilepath = "/var/run/hmacfileserver.pid"
cleanuponexit = true
precaching = true
2025-01-26 09:20:56 +01:00
deduplicationenabled = true
globalextensions = [".txt", ".pdf", ".png", ".jpg", ".jpeg", ".gif", ".bmp", ".tiff", ".svg", ".webp"]
# FileNaming options: "HMAC", "None"
filenaming = "HMAC"
2025-01-15 15:46:43 +01:00
[logging]
level = "info"
file = "/var/log/hmac-file-server.log"
max_size = 100
max_backups = 7
max_age = 30
compress = true
[deduplication]
enabled = true
directory = "./deduplication"
[iso]
enabled = true
size = "1GB"
mountpoint = "/mnt/iso"
charset = "utf-8"
2025-01-26 09:20:56 +01:00
containerfile = "/mnt/iso/container.iso"
2025-01-15 15:46:43 +01:00
[timeouts]
readtimeout = "4800s"
writetimeout = "4800s"
2025-01-26 19:46:02 +01:00
idletimeout = "4800s"
2025-01-15 15:46:43 +01:00
[security]
secret = "changeme"
[versioning]
enableversioning = false
2025-01-26 09:20:56 +01:00
maxversions = 1
2025-01-15 15:46:43 +01:00
[uploads]
2025-01-26 09:20:56 +01:00
resumableuploadsenabled = true
2025-01-15 15:46:43 +01:00
chunkeduploadsenabled = true
2025-01-26 09:20:56 +01:00
chunksize = "8192"
allowedextensions = [".txt", ".pdf", ".png", ".jpg", ".jpeg", ".gif", ".bmp", ".tiff", ".svg", ".webp"]
2025-01-15 15:46:43 +01:00
[downloads]
2025-01-26 09:20:56 +01:00
resumabledownloadsenabled = true
2025-01-15 15:46:43 +01:00
chunkeddownloadsenabled = true
2025-01-26 09:20:56 +01:00
chunksize = "8192"
allowedextensions = [".txt", ".pdf", ".png", ".jpg", ".jpeg", ".gif", ".bmp", ".tiff", ".svg", ".webp"]
2025-01-15 15:46:43 +01:00
[clamav]
2025-01-26 09:20:56 +01:00
clamavenabled = true
2025-01-15 15:46:43 +01:00
clamavsocket = "/var/run/clamav/clamd.ctl"
numscanworkers = 2
2025-01-26 09:20:56 +01:00
scanfileextensions = [".txt", ".pdf", ".png", ".jpg", ".jpeg", ".gif", ".bmp", ".tiff", ".svg", ".webp"]
2025-01-15 15:46:43 +01:00
[redis]
2025-01-26 09:20:56 +01:00
redisenabled = true
redisdbindex = 0
2025-01-15 15:46:43 +01:00
redisaddr = "localhost:6379"
redispassword = ""
redishealthcheckinterval = "120s"
[workers]
numworkers = 4
2025-01-26 09:20:56 +01:00
uploadqueuesize = 50
[file]
# Add file-specific configurations here
2025-01-15 15:46:43 +01:00
[build]
2025-01-26 09:20:56 +01:00
version = "2.6-Stable"