Skip to main content

Nginx Quickdeploy

Project description

NGINX QUICKDEPLOY

About

Helps you create and deploy websites on nginx quickly.

Installation

pip3 install nginx-quickdeploy

Usage

Variables:

  • 'FQDN' : Fully Qualified Domain Name, name of your website
  • Nginx config path: Path where your generated config file is stored.
  • Ports: Ports to listen to, in format: <port1> [ssl], <port2> [ssl]
  • Root path: Path where your html files are located
  • Proxy: If your actual application is running on some other port, you can proxy pass and use nginx as webserver. For that just use this function, if not leave it empty

Tips and Examples

Invoke the script with sudo rights if you want to write to /etc/ngnix/sites-available as it is write protected for non sudo users.

# sudo quickdeploy

FQDN of your domain, e.g. example.com or subdomain.example.com without http or https:  www.example.org
Where should the new config file be saved?, default is /etc/nginx/sites-available/www.example.org :
Ports separated by commas(,) in nginx fashion, like 80, [::]:80 etc
For ssl, just add ssl after the port, e.g. 80, 443 ssl, [::]:80, [::]:443 ssl
Enter ports here:
Enter the www root path(default /var/www/html):
Should this server need to proxy_pass, enter the address here:

Your new website was deployed successfully
Restart nginx to serve it via nginx.

would yield a config file that looks like this:

server {
  root /var/www/html;
  server_name www.example.org;
  listen 80;
   location / {
       try_files $uri $uri/;
   }
}

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_quickdeploy-0.2.0.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

nginx_quickdeploy-0.2.0-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file nginx_quickdeploy-0.2.0.tar.gz.

File metadata

  • Download URL: nginx_quickdeploy-0.2.0.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6

File hashes

Hashes for nginx_quickdeploy-0.2.0.tar.gz
Algorithm Hash digest
SHA256 f9e5f8fd337878d8bc5b6acc699b65d602051851e7392c0a74752e613abbc498
MD5 20bd21ec0d138af859515cb76a14d741
BLAKE2b-256 d90719a0d285154f401605debfe97f68726e6cc364320bc5bb7c4e1fdb6d45e4

See more details on using hashes here.

File details

Details for the file nginx_quickdeploy-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: nginx_quickdeploy-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6

File hashes

Hashes for nginx_quickdeploy-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d36a201853f7c329f63b26523fc8a15f76d42faa947ecffbe707f8197d88ba8f
MD5 f33b27db65abda10ada1814fa7ed6ab9
BLAKE2b-256 bceb8bbad45d89d48c462a1de2cfe1ddf310189f5ccd3b4537574f3fb743b3d5

See more details on using hashes here.

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