Skip to main content

Nginx configuration analyzer — validate configs, detect security issues, check SSL settings, and audit server blocks

Project description

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

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

dargslan_nginx_analyzer-1.0.0.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dargslan_nginx_analyzer-1.0.0-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

Details for the file dargslan_nginx_analyzer-1.0.0.tar.gz.

File metadata

  • Download URL: dargslan_nginx_analyzer-1.0.0.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for dargslan_nginx_analyzer-1.0.0.tar.gz
Algorithm Hash digest
SHA256 6a8366c004434a457d485bdd281328945cfa86b443f17cd9c8fde14ebffd6474
MD5 c1550c5bf6becf68232e77538a27c6d5
BLAKE2b-256 0860fbb649f603b31d0c79bc8bf2ec7314063f25ba92464705208d486da79dd2

See more details on using hashes here.

File details

Details for the file dargslan_nginx_analyzer-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for dargslan_nginx_analyzer-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 75f134bf2616c1c7d7921381f2af8a63d292e00f7aa302e9c483aee53c14de21
MD5 6022233a5bdeac7e89b1343366df6c4e
BLAKE2b-256 fe89defb6d9c7009eb05279538d8856842d2575b28fb7d99bb33a8fd50b07357

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page