miniserve icon indicating copy to clipboard operation
miniserve copied to clipboard

`--index` if index.html exists?

Open DUOLabs333 opened this issue 2 years ago • 1 comments

It would be nice if by default, if index.html is found, miniserve does --index index.html.

DUOLabs333 avatar May 01 '22 22:05 DUOLabs333

Hm not sure, this might be surprising behavior for users who are used to miniserve just serving the current dir as is. If you did that and had --upload active, someone could upload an index.html and then miniserve would stop serving the dir index. I'm not sure I like that behavior.

svenstaro avatar May 02 '22 12:05 svenstaro

We have something like this now with --readme. Does that work for you?

svenstaro avatar Aug 27 '22 13:08 svenstaro

Not really, but I don't really need this feature anymore --- I just made a wrapper script that hardcodes --index.

DUOLabs333 avatar Aug 27 '22 14:08 DUOLabs333