diff --git a/upload-server/internal/handlertusd/handlertusd.go b/upload-server/internal/handlertusd/handlertusd.go index 0af77359f..c9710b070 100644 --- a/upload-server/internal/handlertusd/handlertusd.go +++ b/upload-server/internal/handlertusd/handlertusd.go @@ -56,15 +56,12 @@ func New(store Store, locker Locker, hooksHandler hooks.HookHandler, basePath st // Create a new HTTP handler for the tusd server by providing a configuration. // The StoreComposer property must be set to allow the handler to function. handler, err := hooks.NewHandlerWithHooks(&tusd.Config{ - BasePath: basePath, - StoreComposer: composer, - NotifyCompleteUploads: true, - // NotifyTerminatedUploads: true, - // NotifyUploadProgress: true, - // NotifyCreatedUploads: true, - // PreUploadCreateCallback: - - Logger: logger, + BasePath: basePath, + StoreComposer: composer, + NotifyCompleteUploads: true, + Logger: logger, + RespectForwardedHeaders: true, + DisableDownload: true, }, hooksHandler, []hooks.HookType{hooks.HookPreCreate, hooks.HookPostCreate, hooks.HookPostReceive, hooks.HookPreFinish, hooks.HookPostFinish, hooks.HookPostTerminate}) // .handler if err != nil { logger.Error("error start tusd handler", "error", err)