|
1 year ago | |
---|---|---|
spec | 1 year ago | |
src | 1 year ago | |
.editorconfig | 1 year ago | |
.gitignore | 1 year ago | |
LICENSE | 1 year ago | |
README.md | 1 year ago | |
nginxer.screenshot.0.png | 1 year ago | |
shard.lock | 1 year ago | |
shard.yml | 1 year ago |
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.
git clone <repo-url>
cd nginxer
shards install
crystal build src/nginxer.cr
sudo cp nginxer /usr/share/nginxer
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 |
This is currently not working due to weird ncurses dependency problem
crystal build --static --link-flags "-rdynamic -static -levent" src/nginxer.cr
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)