A self-hosted Nginx configuration editor
This is a simple web-based tool to edit nginx configuration files. With it you can remotely edit configuration files, create new configuration files, check the files for syntax errors, as well as restart the nginx service.
Thank you wuliupo for this update!
NGINX=/Applications/MAMP/Library/sbin/nginx CONFIG=/data/vhost node server.js
Thank you se and KristijanL for your contributions to the project.
To run this this project, you must have Node.js installed, along with npm
, the Node.js package manager.
Clone the project:
git clone https://github.com/RussellWebSystems/nginx-config-editor.git
Install the node module dependencies:
cd nginx-config-editor && npm install
Run the app (you must run as sudo to be able to access the nginx directory):
sudo node server.js
And finally, go to http://localhost:7676/ in your web browser.
/etc/nginx/sites-available
.