A package to create configurations for nginx with/without pagespeed for different web applications
Project description
Nginx-set-conf
====================================================================================
This is a simple python library that helps you to create configurations for different docker based applications with nginx as reverse proxy.
Installation
Nginx-set-conf requires:
- Python (>= 3.6)
- click (>= 8.0.3)
- PyYaml (>= 5.4.1)
Use the package manager pip to install nginx-set-conf.
pip install nginx-set-conf-equitania
Usage
$ nginx-set-conf --help
usage: nginx-set-conf [--help] [--config_template] [--ip] [--domain] [--port] [--cert_name] [--pollport] [--redirect_domain] [--config_path]
Options:
--config_template TEXT Insert the conf-template.
We support:
- ngx_code_server (code-server with ssl)
- ngx_fast_report (FastReport with ssl)
- ngx_nextcloud (NextCloud with ssl)
- ngx_odoo_http (Odoo only http)
- ngx_odoo_ssl (Odoo with ssl)
- ngx_odoo_ssl_pagespeed (Odoo with ssl and PageSpeed)
- ngx_pgadmin (pgAdmin4 with ssl)
- ngx_portainer (NextCloud with ssl)
- ngx_pwa (Progressive Web App with ssl)
- ngx_redirect (Redirect Domain without ssl)
- ngx_redirect_ssl (Redirect Domain with ssl)
--ip TEXT IP address of the server
--domain TEXT Name of the domain
--port TEXT Primary port for the Docker container
--cert_name TEXT Name of certificate
--pollport TEXT Secondary Docker container port for odoo pollings
--redirect_domain TEXT Redirect domain
--auth_file TEXT Use authfile for htAccess
--config_path TEXT Yaml configuration folder
--help Show this message and exit.
Example
# Execution with config file
nginx-set-conf --config_path server_config
f.e.
nginx-set-conf --config_path=$HOME/docker-builds/ngx-conf
# Execution without config file
nginx-set-conf --config_template ngx_odoo_ssl_pagespeed --ip 1.2.3.4 --domain www.equitania.de --port 8069 --cert_name www.equitania.de --pollport 8072
# Create your cert with
certbot certonly --standalone --agree-tos --register-unsafely-without-email -d www.equitania.de
# Install certbot on Ubuntu with
apt-get install certbot
Compile your nginx with PageSpeed
At github you can find the script to do that: nginx build script
This project is licensed under the terms of the AGPLv3 license.
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-set-conf-equitania-0.7.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad9c6cb7641e72805104e979c3cb0b434e4d984e3a261775455917925a48c3f5 |
|
MD5 | 09180f4093085bd628e26e7ea5d6b89c |
|
BLAKE2b-256 | efd685dc284187811fc9f664531e67292184bfe23f2b41cb2a8e5a9b7946b27f |
Close
Hashes for nginx_set_conf_equitania-0.7.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91d3835b53e7b0f6b4c45515a7b2a7ddef39613c7c028f259947e146a2809f13 |
|
MD5 | 429641d9d3643a4898138a933a841a4a |
|
BLAKE2b-256 | 66d95127f36377f4dcf17bf38ae227a9f06d4018ba7517de21fa3dd389a40d5a |