svenstaro/miniserve

[Question] Authenticated upload, anonymous download

Opened this issue · 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!

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

+1

Authenticated upload, anonymous download