miniserve icon indicating copy to clipboard operation
miniserve copied to clipboard

[Feature Request] enable multiple paths or path filters

Open hellodword opened this issue 3 years ago • 4 comments

Thanks for this great tool!

As an example:

├── do_not_share
├── share.1
└── share.2

For now, if I want to exclude (or include) some files under the same path, I have to create a new folder and move the files.

How about this:

miniserve share.1 share.2

or more powerful like:

miniserve --regexp share.*

I think it's useful.

hellodword avatar Mar 02 '21 12:03 hellodword

This is potentially something we could do. Are you not interested in this feature anymore?

svenstaro avatar Mar 05 '21 15:03 svenstaro

This is potentially something we could do. Are you not interested in this feature anymore?

Oh sorry, I thought there's no replies.

I'm very interested in this feature, and looked into it, maybe need to implement a new actix-files?

hellodword avatar Mar 05 '21 16:03 hellodword

Any progress on this? I have tried workarounds - e.g. using miniserve . then wget localhost:8080/index.html > index.html while serving, then using vim to yank out the <tr>(blah)</tr> entries - but it's tedious and doesn't do much regarding security, because (obviously) the files/directories can still be accessed by just putting in the URL.

chaxor avatar Mar 14 '23 21:03 chaxor

need the same feature, How to select the specific folder to share...

sinopec avatar Dec 05 '23 09:12 sinopec