caddyv2-upload
caddyv2-upload copied to clipboard
Use with basic auth?
trafficstars
Do you have an example of using this with basic auth?
Without basicauth I get this to work, but if I add the following I get 500 internal server error.
@appversionpost method POST
upload @appversionpost {
dest_dir /public-files
max_form_buffer 1G
max_filesize 4G
}
# Protect the upload endpoint with an API key
basicauth @appversionpost {
# Password is bcrypt encoded
someusername $2a$12$....
}
@andrejohansson Did you manage to get basic auth working properly? Thanks!