-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add WebServer on top of httpserver for authentication handling of several routes #2968
Comments
Amazing (or scary?) how many HTTP servers there exist for NodeMCU - I had no idea. This despite our FAQ stating
I don't have any preference as to where you are going with this code. Not having to maintain an HTTP module at all would also be fine i.e. we remove ours and link to yours instead. |
.But it does not do anything out of the box, so I aim to have a WebServer which can be configured to serve static files with one line. Equally simple it can be configured to call dynamic APIs. This was the idea when i wrote this. I've also done some simple test with authentication. But as it is not secure, i didn't follow this further. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I will eventually continue my work. Please have a bit more patience. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Need to make a pr for this |
Missing feature
There have been several calls for a WebServer lately.
Reference to our httpserver.lua or https://github.com/marcoskirsch/nodemcu-httpserver or #2957
Our httpserver.lua is sophisticated in using output buffering and having a flexible interface.
But it does not do anything out of the box, so I aim to have a WebServer which can be configured to serve static files with one line. Equally simple it can be configured to call dynamic APIs.
It will be easy to write and integrate individual filters, authentication, redirects or whatever middle-ware is needed.
Configuration will be similar to nodemcu-espress. I might also use their plugins and adapt them to our API.
Justification
Easy way to serve some pages.
@TerryE @marcelstoer @pjsg Do you think this is the right repo or should I put it in my own.
This would include several files for the core WebServer and some plugins.
Workarounds
Everybody write their own
The text was updated successfully, but these errors were encountered: