miniserve icon indicating copy to clipboard operation
miniserve copied to clipboard

[Question] Authenticated upload, anonymous download

Open oorzkws opened this issue 2 years ago • 2 comments

Hi,

I've been using miniserve for some time but have left uploads disabled as I don't want anyone to whom I send files being able to also upload files.

Is there a way to achieve authenticated uploads with anonymous downloads allowed? My thought currently would be running two miniserve instances - one authenticated with uploads enabled (u.file.host) and one anonymous without uploads enabled (d.file.host) with both serving from the same path.

Any suggestions on how to handle this?

Thanks!

oorzkws avatar Sep 25 '22 05:09 oorzkws

I'd accept a new flag for this. Should be fairly easy to implement too if you want to take a stab.

svenstaro avatar Sep 25 '22 07:09 svenstaro

+1

Authenticated upload, anonymous download

m2acgi avatar Oct 28 '22 01:10 m2acgi