feat: update chunked upload endpoints and enhance upload resilience with improved logging and HMAC validation

This commit is contained in:
2025-07-17 19:09:22 +02:00
parent 59679edbce
commit dc88f9f6fb
18 changed files with 181 additions and 43 deletions

View File

@ -698,6 +698,9 @@ func main() {
router := setupRouter() // Assuming setupRouter is defined (likely in this file or router.go
// Initialize enhancements and enhance the router
InitializeEnhancements(router)
go handleFileCleanup(&conf) // Directly call handleFileCleanup
readTimeout, err := time.ParseDuration(conf.Timeouts.Read) // Corrected field name
@ -766,9 +769,6 @@ func main() {
}
log.Infof("Running version: %s", versionString)
// Initialize network resilience features (non-intrusive)
InitializeEnhancements()
log.Infof("Starting HMAC file server %s...", versionString)
if conf.Server.UnixSocket {
socketPath := "/tmp/hmac-file-server.sock" // Use a default socket path since ListenAddress is now a port