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.dev1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | edd6d70a3515d6da90fba9075395af79b214eed980f1f8ec1bdd8456caa3c449 |
|
MD5 | 0bc605390058b990f9f971d305290fce |
|
BLAKE2b-256 | a3656fb8f430a96c76ca35fa71f0ecf670cfaa3499c82170856743220a3fdf24 |
Close
Hashes for nginx_generator-0.2.0.dev1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a610ef89d3442b885693e126c4534fdb6b0a763ad614d6ebc07dc94e3a332adc |
|
MD5 | 287a57628894da862443b1112ccad487 |
|
BLAKE2b-256 | 50ebf686f6dc1732d168962d710cd60f0c9008701521a820cb327e3ce691ecba |