svenstaro / miniserve

🌟 For when you really just want to serve some files over HTTP right now!
MIT License
6.12k stars 296 forks source link

[Feature Request] Simple CGI for bash script #995

Closed thenoobtester closed 1 year ago

thenoobtester commented 1 year ago

Hi there,

awesome mini http/https server, I'm always looking for stuff like this when python -m SimpleHTTPServer is not good enough. One feature which would really be the cherry on the cake is some simple CGI for bash scripts to do some quick processing server-side and return some data.

Thank you for considering this in a future release if it's not too much as I have no idea how much work that would entail.

Kindest regards

mailq commented 1 year ago

I'd vote against it. Because that would make miniserve a fully fledged web-server like nginx or apache. Instead I would advice to have a look into shell2http which is exactly the tool to serve scripts. You can still use both tools in parallel, each doing the thing they are designed for.

svenstaro commented 1 year ago

I'm also against this. This would make security in miniserve so much harder and also it would make this not so mini anymore since now it's more like a fully fledged application server. I think at this point you should indeed be looking at other software entirely.

svenstaro commented 1 year ago

That said, thank you a lot of the feature suggestion, I certainly do not want to sound too dismissive here and I'm usually pretty lenient about features coming in but sometimes I do have to stay the course of this being a small and obvious server for serving files over HTTP.

I hope it's fine for you. :)

thenoobtester commented 1 year ago

Thank you for the answers and sorry for the delay, I have been very busy and lost track of this :)