caddyv2-upload icon indicating copy to clipboard operation
caddyv2-upload copied to clipboard

Use with basic auth?

Open andrejohansson opened this issue 2 years ago • 1 comments
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 avatar Apr 10 '23 11:04 andrejohansson

@andrejohansson Did you manage to get basic auth working properly? Thanks!

pauljeannot avatar Oct 07 '24 11:10 pauljeannot