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

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

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.1.5.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nginx_generator-0.1.5-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file nginx_generator-0.1.5.tar.gz.

File metadata

  • Download URL: nginx_generator-0.1.5.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for nginx_generator-0.1.5.tar.gz
Algorithm Hash digest
SHA256 7e17b98cbb29abb6fc626272a7558484ceb60a9352d7351813a22c6f973c9b11
MD5 59d8c1b6eca4ec0ac0c36b2b1c8ea0b7
BLAKE2b-256 b4fac85cd37c6e73ba0c24f7e5944bc89d61c6c243337e5ce6cea950e82e5367

See more details on using hashes here.

File details

Details for the file nginx_generator-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: nginx_generator-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for nginx_generator-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 cb3cb64c6fd4271d59a6b6599348fd7b0afc8333b653acded52f7f1f0631c0ff
MD5 c9646b0d773ce08210c8e9d264def4cb
BLAKE2b-256 45fa8c52e61a1864802a7f192cc9cb48d9d1667d48e453fdd28da2436b31bf47

See more details on using hashes here.

Supported by

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