feat: update chunked upload endpoints and enhance upload resilience with improved logging and HMAC validation
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user