Implement code changes to enhance functionality and improve performance

This commit is contained in:
2025-07-18 15:21:43 +00:00
parent bd850ac8e0
commit 77419e5595
5 changed files with 413 additions and 50 deletions

38
config-simple.toml Normal file
View 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"