dargslan-nginx-analyzer
Nginx Configuration Analyzer — Validate configs, detect security issues, check SSL settings, audit security headers, and analyze server blocks. Zero external dependencies.
Installation
pip install dargslan-nginx-analyzer
CLI Usage
# Full analysis report
dargslan-nginx report
# List server blocks
dargslan-nginx servers
# Check SSL configuration
dargslan-nginx ssl
# Check security headers
dargslan-nginx headers
# All issues
dargslan-nginx issues
# Test nginx config (nginx -t)
dargslan-nginx test
# JSON output
dargslan-nginx json
# Custom config path
dargslan-nginx report -c /etc/nginx/nginx.conf
Python API
from dargslan_nginx_analyzer import NginxAnalyzer
na = NginxAnalyzer() # auto-finds nginx.conf
# Full audit
issues = na.audit()
# Specific checks
ssl_issues = na.check_ssl_config()
header_issues = na.check_security_headers()
common_issues = na.check_common_issues()
# Get server blocks
servers = na.get_server_blocks()
# Test config validity
result = na.test_config()
# Formatted report
na.print_report()
Checks Performed
| Category | What It Checks |
|---|---|
| SSL/TLS | Insecure protocols, cipher config, server cipher preference |
| Headers | X-Frame-Options, HSTS, CSP, X-Content-Type-Options, etc. |
| Security | server_tokens, autoindex, dotfile access |
| Config | Syntax validation via nginx -t |
More from Dargslan
- Dargslan.com — Linux & DevOps eBook Store
- Free Cheat Sheets — 300+ downloadable PDFs
- Blog & Tutorials — 300+ in-depth articles
- All Python Tools — 20+ CLI packages
License
MIT — see LICENSE
Metadata
Release files for dargslan-nginx-analyzer 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| dargslan_nginx_analyzer-1.0.0.tar.gz | 5.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| dargslan_nginx_analyzer-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.9 kB
Release files / dargslan_nginx_analyzer-1.0.0.tar.gz
| Download URL | dargslan_nginx_analyzer-1.0.0.tar.gz |
|---|---|
| Size | 5.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6a8366c004434a457d485bdd281328945cfa86b443f17cd9c8fde14ebffd6474
|
|
BLAKE2b-256 checksum How to use checksums |
0860fbb649f603b31d0c79bc8bf2ec7314063f25ba92464705208d486da79dd2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.14
|
Release files / dargslan_nginx_analyzer-1.0.0-py3-none-any.whl
| Download URL | dargslan_nginx_analyzer-1.0.0-py3-none-any.whl |
|---|---|
| Size | 6.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
75f134bf2616c1c7d7921381f2af8a63d292e00f7aa302e9c483aee53c14de21
|
|
BLAKE2b-256 checksum How to use checksums |
fe89defb6d9c7009eb05279538d8856842d2575b28fb7d99bb33a8fd50b07357
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.14
|