A simple utility to manage Nginx configurations.

Update README

+13 -15
+13 -15
README.md
··· 12 12 * Integrated Testing: Prompts to run nginx -t and reload the service after every edit or toggle. 13 13 * Config Preview: Uses batcat (with syntax highlighting) if installed, otherwise falls back to cat. 14 14 15 - ## Prerequisites 16 - 17 - To use this utility ensure that your main Nginx config (e.g., `/etc/nginx/nginx.conf`) attempts to load in configurations 18 - at `/etc/nginx/sites-enabled/*` (or wherever you'd like to store your configurations). 19 - 20 - For example, your `/etc/nginx/nginx.conf` should contain the following: 21 - ```conf 22 - # ... 23 - 24 - http { 25 - # ... 26 - include /etc/nginx/sites-enabled/*; 27 - } 28 - ``` 29 - 30 15 ## Installation 31 16 32 17 To install nx system-wide while keeping the source code in this repository for easy updates: ··· 47 32 ```bash 48 33 sudo ln -s $(pwd)/nx /usr/local/bin/nx 49 34 ``` 35 + 36 + 4. Ensure that your main Nginx config (e.g., `/etc/nginx/nginx.conf`) attempts to load in configurations 37 + at `/etc/nginx/sites-enabled/*` (or wherever you'd like to store your configurations). 38 + 39 + For example, your `/etc/nginx/nginx.conf` should contain the following: 40 + ```conf 41 + # ... 42 + 43 + http { 44 + # ... 45 + include /etc/nginx/sites-enabled/*; 46 + } 47 + ``` 50 48 51 49 ## Usage 52 50