Skip to content

A self-hosted or local web app for editing nginx configuration files

Notifications You must be signed in to change notification settings

valentin9/nginx-config-editor

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 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.

Screenshots

Fullscreen: Nginx Config Editor Edit app config: Edit App Config

9/4/19 Update

  • I recently finished pushing some commits that addressed a couple issues raised
  • I added an edit config button. This just loads the config.json for Nginx Config Editor
  • I fixed a few bugs

3/27/19 Update

Thank you se and KristijanL for your contributions to the project.

Run this 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/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.

Some Notes

  • You can change the default directory used to look for nginx files by editing app/config.json, which by default is set to /etc/nginx/sites-available.
  • I would recommend only running this within a local network, as to prevent the rest of internet from having the ability to edit your nginx configuration files.
  • 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.

About

A self-hosted or local web app for editing nginx configuration files

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 76.6%
  • HTML 19.0%
  • CSS 4.4%