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: nginx-generator [OPTIONS] DOMAIN
Generate a nginx config file
Options:
--proxy TEXT Proxy address
--root PATH Document root
--php Enables php-fpm
--php-version TEXT Set php-fpm version
--no-ssl Disables automatic certificate using certbot
--edit Open editor after install
-Y, --yes
--dry-run Writes to temporary file (implies --edit, --no-ssl)
--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
nginx_generator-0.1.4.tar.gz
(3.8 kB
view hashes)
Built Distribution
Close
Hashes for nginx_generator-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91e2c76d7173a9a36460b49a3afbaf2b8c6971083df80e722fca72e78d2b67db |
|
MD5 | d09906573bb45e6edd4626ab70caf018 |
|
BLAKE2b-256 | 60b6b20bfe1cb9c150d0fd2549d854f20109ff62c780cf2f253a3cbb28f1459d |