No description
| spec | ||
| src | ||
| .editorconfig | ||
| .gitignore | ||
| LICENSE | ||
| nginxer.screenshot.0.png | ||
| README.md | ||
| shard.lock | ||
| shard.yml | ||
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
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
- Fork it
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request
Contributors
- nikobojs - creator and maintainer