Skip to content
HALOWERK

Codewerk

nginx config check

Own tokenizer following ngx_conf_read_token (quotes, escapes, ${var}, comments) builds the directive tree with file and line numbers; include directives are resolved only against the supplied files (glob match). Rules: alias_traversal, add_header_redefinition, host_spoofing, http_splitting, ssrf, valid_referers, add_header_multiline and origins as documented by gixy (yandex/gixy commit 6f68624, MPL-2.0, retrieved 2026-11-01) with its variable model (only $uri, $document_uri, $arg_*, $args,.

POST https://code.halowerk.com/v1/nginx-config-check

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
configstringYesContent of nginx.conf or a site file.
pathstringNoPath of the main file (used in findings and include matching).
filesarrayNoAdditional files that include/import directives may reference (matched by path or glob; nothing is read from disk).
Show full input schema
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "config"
  ],
  "properties": {
    "config": {
      "type": "string",
      "minLength": 1,
      "maxLength": 1000000,
      "description": "Content of nginx.conf or a site file."
    },
    "path": {
      "type": "string",
      "minLength": 1,
      "maxLength": 300,
      "default": "nginx.conf",
      "description": "Path of the main file (used in findings and include matching)."
    },
    "files": {
      "type": "array",
      "maxItems": 50,
      "description": "Additional files that include/import directives may reference (matched by path or glob; nothing is read from disk).",
      "items": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "path",
          "content"
        ],
        "properties": {
          "path": {
            "type": "string",
            "minLength": 1,
            "maxLength": 300
          },
          "content": {
            "type": "string",
            "maxLength": 500000
          }
        }
      }
    }
  }
}

Open original schema

Published input example

{
  "config": "server {\n    listen 80;\n    location /i {\n        alias /data/w3/images/;\n    }\n}\n"
}

Result & documentation

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-11-17 UTC.

More endpoints in this hub

All endpoints in this hub โ†’