activating http basic auth #189

Closed
opened 2026-01-19 18:29:20 +00:00 by michael · 2 comments
Owner

Originally created by @sicenul on GitHub.

I am using docker with local provider
I need to protect only authenticated user can upload a file.
is it possible by using http basic auth?
If so, how to setup using docker? and please also provide curl sample for uploading a file with auth.

Please enlighten me, thanks in advance

Originally created by @sicenul on GitHub. I am using docker with local provider I need to protect only authenticated user can upload a file. is it possible by using http basic auth? If so, how to setup using docker? and please also provide curl sample for uploading a file with auth. Please enlighten me, thanks in advance
Author
Owner

@paolafrancesca commented on GitHub:

hello @sicenul
you have to set the following two ENV variables:
HTTP_AUTH_USER, HTTP_AUTH_PASS
https://github.com/dutchcoders/transfer.sh/blob/master/cmd/cmd.go#L247-L257

curl upload works just passing credentials in the URI: ie: https://user:pass@domain.com/etc

@paolafrancesca commented on GitHub: hello @sicenul you have to set the following two ENV variables: `HTTP_AUTH_USER`, `HTTP_AUTH_PASS` https://github.com/dutchcoders/transfer.sh/blob/master/cmd/cmd.go#L247-L257 curl upload works just passing credentials in the URI: ie: `https://user:pass@domain.com/etc`
Author
Owner

@sicenul commented on GitHub:

great it work, thanks for your fast response.

@sicenul commented on GitHub: great it work, thanks for your fast response.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: dutchcoders/transfer.sh#189