Skip to main content

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

sudo nginx-generator example.com,www.example.com --root /var/www/html
sudo nginx-generator example.com,www.example.com --proxy http://localhost:8080/
sudo nginx-generator example.com --root /var/www/html --php --php-version 8.0

Installation

sudo pip3 install nginx-generator

If you want to get ssl certificates, you need to install certbot, and for php you require php-fpm

Metadata

Release files for nginx-generator 0.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nginx-generator 0.1.5
File Size Uploaded
nginx_generator-0.1.5.tar.gz 4.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for nginx-generator 0.1.5
File Interpreter ABI Platform
nginx_generator-0.1.5-py3-none-any.whl Python 3 none any Details

Total release size: 10.4 kB

Release files / nginx_generator-0.1.5.tar.gz

Download URL nginx_generator-0.1.5.tar.gz
Size 4.7 kB
Tags Source
SHA-256 checksum
How to use checksums
7e17b98cbb29abb6fc626272a7558484ceb60a9352d7351813a22c6f973c9b11
BLAKE2b-256 checksum
How to use checksums
b4fac85cd37c6e73ba0c24f7e5944bc89d61c6c243337e5ce6cea950e82e5367
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.10

Release files / nginx_generator-0.1.5-py3-none-any.whl

Download URL nginx_generator-0.1.5-py3-none-any.whl
Size 5.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cb3cb64c6fd4271d59a6b6599348fd7b0afc8333b653acded52f7f1f0631c0ff
BLAKE2b-256 checksum
How to use checksums
45fa8c52e61a1864802a7f192cc9cb48d9d1667d48e453fdd28da2436b31bf47
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.10

Release history Release notifications | RSS feed

This release

0.1.5 This release

2 release files

0.1.4

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page