Generate nginx configs interactivly
Project description
nginx-generator
Command line interface for generating nginx config files
Features
- Reverse proxy support
- Static file support
- Php support
- Certbot support
Usage
Usage: app.py [OPTIONS] DOMAIN
Generate a nginx config file
Options:
-p, --proxy TEXT Proxy address
-r, --root PATH Document root
--php Enables php-fpm
--php-version TEXT Set php-fpm version
--filename TEXT Set config filename (default: domain)
--no-ssl Disables automatic certificate using certbot
--edit Open editor after install
-y, --yes Do not prompt user
--dry-run Writes to temporary file (implies --edit, --no-ssl)
--ignore-nginx-errors Don't exit on nginx errors
--help Show this message and exit.
Examples
nginx-generator example.com,www.example.com --root /var/www/html
nginx-generator example.com,www.example.com --proxy http://localhost:8080/
nginx-generator example.com --root /var/www/html --php --php-version 8.0
Installation
pip3 install nginx-generator
If you want to get ssl certificates, you need to install certbot
, and for php you require php-fpm
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for nginx_generator-0.2.0.dev0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8172db86aada669e90e3d88bb85f19e48f2b84fc073c1544c2e2ea549f42f185 |
|
MD5 | 9aa7a5f02bac2af31342ea7637dc799c |
|
BLAKE2b-256 | e72d76ecfaad94ce3967fe2482f6627c68d26b92696b1578a1fa32756a506054 |
Close
Hashes for nginx_generator-0.2.0.dev0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a214af393ccf67646e97b9e2e74eed3f10dc6284f2eda242cb17479c40baf94 |
|
MD5 | 59ef603543b36c10593ac089b7ff8002 |
|
BLAKE2b-256 | ddf57fb67a61a4d3892d7c1156460ae653cb53d57f715a80e562489b3d6d9536 |