Skip to main content

dargslan-nginx-analyzer

Nginx Configuration Analyzer — Validate configs, detect security issues, check SSL settings, audit security headers, and analyze server blocks. Zero external dependencies.

PyPI version License: MIT

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

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)

Source distribution for dargslan-nginx-analyzer 1.0.0
File Size Uploaded
dargslan_nginx_analyzer-1.0.0.tar.gz 5.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dargslan-nginx-analyzer 1.0.0
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page