ngm
NGINX dynamic modules and websites manager.
Managing your NGINX modules
The GetPageSpeed repository users have convenient access to over a hundred of NGINX module packages, via NGINX Extras collection.
We realize the need of both our customers and users of other NGINX module collections, to efficiently manage their installed set of NGINX modules.
The NGINX Manager utility (ngm) provides an easy way to list installed or available NGINX modules,
and look up their respective load_module directives.
Usage
List installed modules
ngm list
Sample output:
+--------------+---------------------------------------+-----------+-------------------------------------------------------------+ | Module ID | Feature Summary | Enabled | Load Directive used by "ngm enable " | |--------------+---------------------------------------+-----------+-------------------------------------------------------------| | security | Modsecurity v3 nginx connector | No | load_module modules/ngx_http_modsecurity_module.so; | | pagespeed | Pagespeed dynamic module for nginx | Yes | load_module modules/ngx_pagespeed.so; | | doh | Serving dns-over-https (doh) requests | Yes | load_module modules/ngx_http_doh_module.so; | | headers-more | Nginx headers more dynamic module | Yes | load_module modules/ngx_http_headers_more_filter_module.so; | | echo | Nginx echo module | Yes | load_module modules/ngx_http_echo_module.so; | +--------------+---------------------------------------+-----------+-------------------------------------------------------------+
Alternative, lengthier syntax to run the same is ngm list installed.
Enable an installed module
ngm enable <module id>
For example:
ngm enable headers-more
This will do the following:
- Add respective
load_moduledirective at the top of yournginx.confconfiguration file - Run
systemctl reload nginx
List installable modules
This command list modules available for installation via GetPageSpeed repositories:
ngm list available
Installation
CentOS/RHEL and other RPM-based systems
yum -y https://extras.getpagespeed.com/release-latest.rpm
yum -y install ngm
Other systems
pip install nginx-manager
Goals for future
Modules
ngm list enabledto see what modules are enabled vianginx -Tand parsingload_moduledirectivesngm disable <module-name>- auto-complete for modules
ngm compile --i-know-i-should-use-packages-instead github/blahngm listto display modules based on modules dir, then look up viarpm -qlall the.soinstead of.jsondatabasengm listshould display latest versionslastversion, this requires look up URL: viarpm
Websites
- Create sites from Jinja templates (absorb idea from https://github.com/dvershinin/pyNginx)
ngm sites listngm sites create wordpress example.comngs listorngxs list?
Metadata
Release files for nginx-manager 0.0.16
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| nginx-manager-0.0.16.tar.gz | 18.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| nginx_manager-0.0.16-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 37.9 kB
Release files / nginx-manager-0.0.16.tar.gz
| Download URL | nginx-manager-0.0.16.tar.gz |
|---|---|
| Size | 18.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ba64760133ed31eee8f34cd548828ce6e1237851eeca8e43608c9e001f5a4e48
|
|
BLAKE2b-256 checksum How to use checksums |
65ba565aba8d60fe804a0622c89dac22f182a00207dfc7f4172a9bd85fc8f7d2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.1
|
Release files / nginx_manager-0.0.16-py3-none-any.whl
| Download URL | nginx_manager-0.0.16-py3-none-any.whl |
|---|---|
| Size | 19.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fde10f5f4ef8b0f092884d469c9ea0dfcb9fc145d1665a66b8e661c3b53a98b1
|
|
BLAKE2b-256 checksum How to use checksums |
c7db22207f7fd19ea0ec4d466033731bb211da1784f22cdf0308710521120308
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.1
|