Skip to content
HALOWERK

Codewerk

caddyfile check

Tokenizer, formatter and block rules are ported from Caddy v2.11.4 caddyconfig/caddyfile (lexer.go, formatter.go, parse.go; Apache-2.0): quotes, backticks, heredocs, comments, global options block, snippets with {args[n]}/{args[a:b]}/{block} placeholders, named routes and imports of supplied files. Checks: brace and line rules, directives and global options against those registered in Caddy v2.11.4 (others need a plugin), deprecated basicauth/skip_log and {args.N}, undefined, duplicate and.

POST https://code.halowerk.com/v1/caddyfile-check

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
caddyfilestringYesCaddyfile content.
pathstringNo
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": [
    "caddyfile"
  ],
  "properties": {
    "caddyfile": {
      "type": "string",
      "minLength": 1,
      "maxLength": 500000,
      "description": "Caddyfile content."
    },
    "path": {
      "type": "string",
      "minLength": 1,
      "maxLength": 300,
      "default": "Caddyfile"
    },
    "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

{
  "caddyfile": "(common) {\n\theader X-Frame-Options DENY\n}\nhalowerk.com {\n\timport common\n\treverse_proxy localhost:8080\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 โ†’