mirror of
https://github.com/dutchcoders/transfer.sh.git
synced 2026-02-03 14:13:26 +00:00
activating http basic auth #189
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
@paolafrancesca commented on GitHub:
hello @sicenul
you have to set the following two ENV variables:
HTTP_AUTH_USER,HTTP_AUTH_PASShttps://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@sicenul commented on GitHub:
great it work, thanks for your fast response.