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.
Go to file
nikobojs 75b669e1aa fix: update readme.md 2022-10-08 01:17:31 +02:00
spec initial commit 2022-10-08 01:00:38 +02:00
src initial commit 2022-10-08 01:00:38 +02:00
.editorconfig initial commit 2022-10-08 01:00:38 +02:00
.gitignore initial commit 2022-10-08 01:00:38 +02:00
LICENSE initial commit 2022-10-08 01:00:38 +02:00
README.md fix: update readme.md 2022-10-08 01:17:31 +02:00
nginxer.screenshot.0.png initial commit 2022-10-08 01:00:38 +02:00
shard.lock initial commit 2022-10-08 01:00:38 +02:00
shard.yml initial commit 2022-10-08 01:00:38 +02:00

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