[server] bind_ip = "0.0.0.0" listenport = "8080" unixsocket = false storagepath = "./uploads" logfile = "/var/log/hmac-file-server.log" metricsenabled = true metricsport = "9090" minfreebytes = "100MB" filettl = "8760h" filettlenabled = true autoadjustworkers = true networkevents = true pidfilepath = "/var/run/hmacfileserver.pid" cleanuponexit = true precaching = true deduplicationenabled = true globalextensions = [".txt", ".pdf", ".png", ".jpg", ".jpeg", ".gif", ".bmp", ".tiff", ".svg", ".webp"] # FileNaming options: "HMAC", "None" filenaming = "HMAC" [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" containerfile = "/mnt/iso/container.iso" [timeouts] readtimeout = "4800s" writetimeout = "4800s" idletimeout = "4800s" [security] secret = "changeme" [versioning] enableversioning = false maxversions = 1 [uploads] resumableuploadsenabled = true chunkeduploadsenabled = true chunksize = "8192" allowedextensions = [".txt", ".pdf", ".png", ".jpg", ".jpeg", ".gif", ".bmp", ".tiff", ".svg", ".webp"] [downloads] resumabledownloadsenabled = true chunkeddownloadsenabled = true chunksize = "8192" allowedextensions = [".txt", ".pdf", ".png", ".jpg", ".jpeg", ".gif", ".bmp", ".tiff", ".svg", ".webp"] [clamav] clamavenabled = true clamavsocket = "/var/run/clamav/clamd.ctl" numscanworkers = 2 scanfileextensions = [".txt", ".pdf", ".png", ".jpg", ".jpeg", ".gif", ".bmp", ".tiff", ".svg", ".webp"] [redis] redisenabled = true redisdbindex = 0 redisaddr = "localhost:6379" redispassword = "" redishealthcheckinterval = "120s" [workers] numworkers = 4 uploadqueuesize = 50 [file] # Add file-specific configurations here [build] version = "2.6-Stable"