Skip to content

A web-based tool for editing nginx configuration files

Notifications You must be signed in to change notification settings

KristijanL/nginx-config-editor

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nginx Config 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.

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/JacFearsome/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.

You can also change the default directory used to look for nginx files by editing app/config.js, which by default is set to /etc/nginx/sites-enabled.

I would recommend only running this within a local network, as to prevent the entire internet from having the ability to edit your nginx configuration files.

Also, if you decide to use this on a more permanent basis, I would not recommend setting up an nginx reverse proxy for it, because if your nginx breaks while you are editing files, you will lose access to the site and won't be able to fix the problem. In other words, because this tool manages nginx, don't access it through an nginx reverse proxy.

Screenshot: alt text

About

A web-based tool for editing nginx configuration files

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 75.7%
  • HTML 19.7%
  • CSS 4.6%