Implement code changes to enhance functionality and improve performance
This commit is contained in:
38
config-simple.toml
Normal file
38
config-simple.toml
Normal file
@ -0,0 +1,38 @@
|
||||
# HMAC File Server - Simplified Configuration
|
||||
# This file contains only the essential settings you need to configure.
|
||||
# All other settings use sensible defaults optimized for production use.
|
||||
|
||||
[server]
|
||||
# Network binding
|
||||
listen_address = ":8080"
|
||||
|
||||
# Storage location for uploaded files
|
||||
storage_path = "/opt/hmac-file-server/data/uploads"
|
||||
|
||||
# Security settings - IMPORTANT: Change the secret for production!
|
||||
[security]
|
||||
secret = "f6g4ldPvQM7O2UTFeBEUUj33VrXypDAcsDt0yqKrLiOr5oQW"
|
||||
|
||||
# Logging configuration
|
||||
[logging]
|
||||
level = "info"
|
||||
file = "/opt/hmac-file-server/data/logs/hmac-file-server.log"
|
||||
|
||||
# Advanced settings - uncomment and modify if needed:
|
||||
|
||||
# [deduplication]
|
||||
# enabled = true
|
||||
# directory = "/opt/hmac-file-server/data/dedup_store"
|
||||
|
||||
# [workers]
|
||||
# numworkers = 4
|
||||
# uploadqueuesize = 100
|
||||
|
||||
# [uploads]
|
||||
# sessiontimeout = "60m"
|
||||
# chunk_size = "10MB"
|
||||
|
||||
# [timeouts]
|
||||
# readtimeout = "4800s"
|
||||
# writetimeout = "4800s"
|
||||
# idletimeout = "4800s"
|
Reference in New Issue
Block a user