A simple tool to turn nginx configs on and off. Currently only systemd based linux systems is supported. Aimed for local development with multiple nginx configs set up as reverse proxies.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
nikobojs 75b669e1aa fix: update readme.md 1 year ago
spec initial commit 1 year ago
src initial commit 1 year ago
.editorconfig initial commit 1 year ago
.gitignore initial commit 1 year ago
LICENSE initial commit 1 year ago
README.md fix: update readme.md 1 year ago
nginxer.screenshot.0.png initial commit 1 year ago
shard.lock initial commit 1 year ago
shard.yml initial commit 1 year ago

README.md

nginxer

A simple tool to turn nginx configs on and off. Currently only systemd based linux systems is supported. Aimed for local development with multiple nginx configs set up as reverse proxies.

The project is built with Crystal and static builds is currently not supported.

Installation

git clone <repo-url>
cd nginxer
shards install
crystal build src/nginxer.cr
sudo cp nginxer /usr/share/nginxer

Usage

nginxer [OPTION]

Option Action
-e NAME, --enable=NAME Enable nginx config file
-d NAME, --disable=NAME Disable nginx config file
-a, --list-enabled List enabled nginx configs
-l, --list-available List available nginx configs
-w, --list-disabled List available but not enabled nginx configs
-r, --reload-nginx Try reload nginx
-s, --status Show nginx config status
-v, --version Show version
-h, --help Show this help message

Example

Usage example


Static build

This is currently not working due to weird ncurses dependency problem

crystal build --static --link-flags "-rdynamic -static -levent" src/nginxer.cr

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors