Repository Analysis

nginx-proxy/nginx-proxy

Automated Nginx Reverse Proxy for Docker

17.1 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of nginx-proxy/nginx-proxy, a Python project with 19,873 GitHub stars. SynthScan v2.0 examined 9,514 lines of code across 228 source files, recording 140 pattern matches distributed across 6 syntactic categories. The overall adjusted score of 17.1 places this repository in the Moderate AI signal band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

17.1
Adjusted Score
17.1
Raw Score
100%
Time Factor
2026-07-13
Last Push
19.9K
Stars
Python
Language
9.5K
Lines of Code
228
Files
140
Pattern Hits
2026-07-14
Scan Date
0.00
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 0HIGH 0MEDIUM 3LOW 137

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

The scanner identified 140 distinct pattern matches across 6 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Hyper-Verbose Identifiers133 hits · 150 pts
SeverityFileLineSnippetContext
LOWtest/conftest.py103 def get_nginx_proxy_container() -> Container:CODE
LOWtest/conftest.py265def docker_container_dns_resolver(domain_name: str) -> Optional[str]:CODE
LOWtest/conftest.py294def monkey_patch_urllib_dns_resolver():CODE
LOWtest/conftest.py337def restore_urllib_dns_resolver(getaddrinfo_func):CODE
LOWtest/conftest.py341def get_nginx_conf_from_container(container: Container) -> bytes:CODE
LOWtest/conftest.py356def __prepare_and_execute_compose_cmd(compose_files: List[str], project_name: str, cmd: str):CODE
LOWtest/conftest.py392def wait_for_nginxproxy_to_be_ready():CODE
LOWtest/conftest.py676def pytest_runtest_makereport(item, call):CODE
LOWtest/test_resolvers/test_resolvers.py17def test_user_provided_resolvers_is_honored(docker_compose):CODE
LOWtest/test_resolvers/test_resolvers.py24def test_resolvers_are_autodetected_when_unset(docker_compose):CODE
LOWtest/test_nominal/test_nominal.py7def test_unknown_virtual_host(docker_compose, nginxproxy):CODE
LOWtest/test_nominal/test_nominal.py33def test_container_version_is_displayed(docker_compose, nginxproxy):CODE
LOWtest/test_virtual-proto/test_virtual-proto.py5def test_upstream_with_https_virtual_proto(docker_compose, nginxproxy, subdomain):CODE
LOW…st_acme-http-challenge-location-accept-unknown-host.py1def test_redirect_acme_challenge_location_enabled(docker_compose, nginxproxy, acme_challenge_path):CODE
LOW…st_acme-http-challenge-location-accept-unknown-host.py8def test_redirect_acme_challenge_location_disabled(docker_compose, nginxproxy, acme_challenge_path):CODE
LOW…st_acme-http-challenge-location-accept-unknown-host.py15def test_noredirect_acme_challenge_location_enabled(docker_compose, nginxproxy, acme_challenge_path):CODE
LOW…st_acme-http-challenge-location-accept-unknown-host.py22def test_noredirect_acme_challenge_location_disabled(docker_compose, nginxproxy, acme_challenge_path):CODE
LOW…st_acme-http-challenge-location-accept-unknown-host.py29def test_unknown_domain_acme_challenge_location_default_enabled(docker_compose, nginxproxy, acme_challenge_path):CODE
LOW…location/test_acme-http-challenge-location-disabled.py1def test_redirect_acme_challenge_location_disabled(docker_compose, nginxproxy, acme_challenge_path):CODE
LOW…location/test_acme-http-challenge-location-disabled.py8def test_redirect_acme_challenge_location_enabled(docker_compose, nginxproxy, acme_challenge_path):CODE
LOW…location/test_acme-http-challenge-location-disabled.py15def test_noredirect_acme_challenge_location_disabled(docker_compose, nginxproxy, acme_challenge_path):CODE
LOW…location/test_acme-http-challenge-location-disabled.py22def test_noredirect_acme_challenge_location_enabled(docker_compose, nginxproxy, acme_challenge_path):CODE
LOW…location/test_acme-http-challenge-location-disabled.py29def test_unknown_domain_acme_challenge_location_disabled(docker_compose, nginxproxy, acme_challenge_path):CODE
LOW…est_acme-http-challenge-location-enabled-is-default.py1def test_redirect_acme_challenge_location_enabled(docker_compose, nginxproxy, acme_challenge_path):CODE
LOW…est_acme-http-challenge-location-enabled-is-default.py8def test_redirect_acme_challenge_location_disabled(docker_compose, nginxproxy, acme_challenge_path):CODE
LOW…est_acme-http-challenge-location-enabled-is-default.py15def test_noredirect_acme_challenge_location_enabled(docker_compose, nginxproxy, acme_challenge_path):CODE
LOW…est_acme-http-challenge-location-enabled-is-default.py22def test_noredirect_acme_challenge_location_disabled(docker_compose, nginxproxy, acme_challenge_path):CODE
LOW…est_acme-http-challenge-location-enabled-is-default.py29def test_unknown_domain_acme_challenge_location_default_enabled(docker_compose, nginxproxy, acme_challenge_path):CODE
LOW…e-location/test_acme-http-challenge-location-legacy.py1def test_redirect_acme_challenge_location_legacy(docker_compose, nginxproxy, acme_challenge_path):CODE
LOW…e-location/test_acme-http-challenge-location-legacy.py8def test_noredirect_acme_challenge_location_legacy(docker_compose, nginxproxy, acme_challenge_path):CODE
LOW…e-location/test_acme-http-challenge-location-legacy.py15def test_unknown_domain_acme_challenge_location_legacy(docker_compose, nginxproxy, acme_challenge_path):CODE
LOWtest/test_ssl/test_nohttps.py16def test_http_acme_challenge_does_not_work(docker_compose, nginxproxy, acme_challenge_path):CODE
LOWtest/test_ssl/test_cert-selection.py12def test_certificate_selection(CODE
LOWtest/test_ssl/test_mtls-client-certificate.py46def test_mtls_client_certificates(docker_compose, nginxproxy, clientcerts, description, url, cert, expected_code, expectCODE
LOWtest/test_ssl/test_virtual-path.py20def test_acme_challenge_does_not_work(docker_compose, nginxproxy, acme_challenge_path, port):CODE
LOWtest/test_ssl/test_redirect_default.py15def test_default_redirect_by_method(CODE
LOWtest/test_ssl/test_redirect_custom.py24def test_custom_redirect_by_method(CODE
LOWtest/test_ssl/test_wildcard-cert-nohttps.py12def test_http_redirects_to_https(docker_compose, nginxproxy, subdomain, should_redirect_to_https):CODE
LOWtest/test_ssl/test_wildcard-cert-nohttps.py28def test_https_request_to_nohttps_vhost_goes_to_fallback_server(docker_compose, nginxproxy):CODE
LOWtest/test_ssl/test_wildcard-cert-nohttps.py43def test_acme_challenge_works(CODE
LOWtest/test_ssl/test_dhparam.py92def can_negotiate_dhe_ciphersuite(sut_container, dh_bits=4096, additional_params=''):CODE
LOWtest/test_ssl/test_dhparam.py104def cannot_negotiate_dhe_ciphersuite(sut_container):CODE
LOWtest/test_ssl/test_dhparam.py128def can_verify_chain_of_trust(sut_container, ca_cert, fqdn):CODE
LOWtest/test_ssl/test_dhparam.py135def should_be_equivalent_content(sut_container, expected, actual):CODE
LOWtest/test_ssl/test_dhparam.py177def test_can_change_dhparam_group(docker_compose):CODE
LOWtest/test_ssl/test_dhparam.py194def test_fail_if_dhparam_group_not_supported(docker_compose):CODE
LOWtest/test_ssl/test_dhparam.py209def test_custom_dhparam_is_supported(docker_compose):CODE
LOWtest/test_ssl/test_dhparam.py231def test_custom_dhparam_is_supported_per_site(docker_compose, ca_root_certificate):CODE
LOWtest/test_ssl/test_dhparam.py272def test_can_skip_dhparam_backward_compatibility(docker_compose):CODE
LOWtest/test_debug-endpoint/test_per-container.py6def test_debug_endpoint_is_disabled_globally(docker_compose, nginxproxy):CODE
LOWtest/test_debug-endpoint/test_per-container.py13def test_debug_endpoint_is_enabled_per_container(docker_compose, nginxproxy):CODE
LOWtest/test_debug-endpoint/test_per-container.py18def test_debug_endpoint_response_contains_expected_values(docker_compose, nginxproxy):CODE
LOWtest/test_debug-endpoint/test_global.py6def test_debug_endpoint_is_enabled_globally(docker_compose, nginxproxy):CODE
LOWtest/test_debug-endpoint/test_global.py13def test_debug_endpoint_response_contains_expected_values(docker_compose, nginxproxy):CODE
LOWtest/test_debug-endpoint/test_global.py24def test_debug_endpoint_paths_stripped_if_response_too_long(docker_compose, nginxproxy):CODE
LOWtest/test_debug-endpoint/test_global.py36def test_debug_endpoint_hostname_replaced_by_warning_if_regexp(docker_compose, nginxproxy):CODE
LOWtest/test_debug-endpoint/test_global.py46def test_debug_endpoint_is_disabled_per_container(docker_compose, nginxproxy):CODE
LOWtest/test_external-ports/test_multiports-priority.py1def test_multiports_external_port_takes_precedence_over_virtualhost_external_port(docker_compose, nginxproxy):CODE
LOWtest/test_htpasswd/test_htpasswd-virtual-host.py1def test_htpasswd_virtual_host_is_restricted(docker_compose, nginxproxy):CODE
LOWtest/test_htpasswd/test_htpasswd-virtual-host.py8def test_htpasswd_virtual_host_basic_auth(docker_compose, nginxproxy):CODE
73 more matches not shown…
Self-Referential Comments2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMtest/certs/create_server_certificate.sh24# Create a nginx container (which conveniently provides the `openssl` command)COMMENT
MEDIUMtest/certs/create_server_certificate.sh138# Create a CA root certificateCOMMENT
Excessive Try-Catch Wrapping2 hits · 4 pts
SeverityFileLineSnippetContext
LOW…t_proxy_protocol/test_proxy-protocol-global-enabled.py10 except Exception as e:CODE
MEDIUM…t_proxy_protocol/test_proxy-protocol-global-enabled.py4def test_proxy_protocol_global_enabled_normal_request_fails(docker_compose, nginCODE
Over-Commented Block1 hit · 1 pts
SeverityFileLineSnippetContext
LOWtest/pytest.sh1#!/bin/shCOMMENT
Unused Imports1 hit · 1 pts
SeverityFileLineSnippetContext
LOWtest/test_ssl/test_mtls-client-certificate.py4CODE
Deep Nesting1 hit · 1 pts
SeverityFileLineSnippetContext
LOWtest/requirements/web/webserver.py8CODE