48 lines
1.3 KiB
TOML
48 lines
1.3 KiB
TOML
# 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"
|
|
# networkevents = true
|
|
|
|
# [network_resilience]
|
|
# enabled = true
|
|
# fast_detection = true # Enable 1-second detection for mobile
|
|
# quality_monitoring = true # Monitor RTT and packet loss
|
|
# predictive_switching = true # Switch before complete failure
|
|
# mobile_optimizations = true # Cellular-friendly thresholds
|
|
# upload_resilience = true # Resume uploads across network changes
|
|
|
|
# [timeouts]
|
|
# readtimeout = "4800s"
|
|
# writetimeout = "4800s"
|
|
# idletimeout = "4800s"
|