A simple utility to manage Nginx configurations.

Update README

+10
+10
README.md
··· 6 7 ## Features 8 9 * **Tree-view Listing**: Automatically groups subdomains under their parent domains using ASCII logic. 10 ``` 11 $ sudo nx list ··· 119 EDITOR Currently set to nano 120 NX_SITES_AVAILABLE_PATH Currently set to /etc/nginx/sites-available 121 NX_SITES_ENABLED_PATH Currently set to /etc/nginx/sites-enabled 122 ``` 123 124 ## Environment Variables ··· 135 ```bash 136 export NX_SITES_AVAILABLE_PATH=<preferred-path> 137 export NX_SITES_ENABLED_PATH=<preferred-path> 138 ``` 139 140 **Note**: To ensure your environment variables are picked up when running with sudo, use the -E flag:
··· 6 7 ## Features 8 9 + * **Container Support**: Works in containerized contexts via environment variable configuration. 10 * **Tree-view Listing**: Automatically groups subdomains under their parent domains using ASCII logic. 11 ``` 12 $ sudo nx list ··· 120 EDITOR Currently set to nano 121 NX_SITES_AVAILABLE_PATH Currently set to /etc/nginx/sites-available 122 NX_SITES_ENABLED_PATH Currently set to /etc/nginx/sites-enabled 123 + NX_RELOAD_CMD Currently set to systemctl reload nginx 124 + NX_TEST_CMD Currently set to nginx -t 125 ``` 126 127 ## Environment Variables ··· 138 ```bash 139 export NX_SITES_AVAILABLE_PATH=<preferred-path> 140 export NX_SITES_ENABLED_PATH=<preferred-path> 141 + ``` 142 + 143 + Alternative `test` and `reload` commands can be configured using the following environment variables. The following example demonstrates how this might look in a containerized context. 144 + 145 + ```bash 146 + export NX_RELOAD_CMD='systemctl --user restart nginx' 147 + export NX_TEST_CMD='podman exec nginx nginx -t' 148 ``` 149 150 **Note**: To ensure your environment variables are picked up when running with sudo, use the -E flag: