Skip to main content

Generate nginx configs interactivly

Project description

nginx-generator

Upload Python Package

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


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.2.0.dev0.tar.gz (4.6 kB view hashes)

Uploaded Source

Built Distribution

nginx_generator-0.2.0.dev0-py3-none-any.whl (5.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page