I am glad to present you a description of
Nitrode .
Problem:
Node.Js does not include the FastCGI module or similar modules for integrating applications, unlike other HTTP servers, for example, nginx.
Decision
Nitrode aims to eliminate this gap by providing a fast and versatile HTTP server built on the basis of
Node.JS. It is designed to support most of the basic features of nginx, but it has an added advantage, since Nitrode is written in JavaScript and provides an API for existing applications that allows them to exercise full control over the server without leaving the current process.
')
Sumptuously! How can I use it?
You can find the repository here:
github.com/ollym/nitrodeI included an example example.js, which will use all the current features of Nitrode, including:
- Basic HTTP authentication;
- ETag and If-Modified-Since support;
- Support for public directories and maintenance of static files;
- SSL support;
- Ability to customize from A to Z;
- Support for virtual hosts;
- support url rewrite;
- And much more…
Unlike
Connect , Nitrode aims to be a strictly HTTP server, and focuses entirely on this direction.
To run an example:
- Clone the source repository;
- Go to the repository directory;
- Run the following command: “sudo node example.js”;
- Open a browser and enter: "localhost: 80";
- Verify authentication using username: “admin”, password: “admin”;
- Now you should see a page titled: “Welcome to Nitrode!”.
Also make sure that example.js is easy to read!
What's next?
Nitrode is very young, I started developing it just last week or so. There are a number of things that I still have to do:
- Split index.js into smaller libraries;
- Add support for digest authentication;
- Add SSL certificate authentication support;
- Write unit tests;
- Improve performance sys.pump;
- Write performance tests;
- Write documentation;
If someone is interested to help me with these tasks, then please join!
Respectfully,
Olly
PS: from translator:
Node.JS 0.2.0 just left , and the author promises that API will not change in this thread.
PPS: the author for the time from the announcement of Nitrode has already released several new versions to this day, a lot has already been done.