Skip to main content

Caddy

@evrardjp/caddyv2026.08.12.1· 29d agoMODELS
01README

Render, validate, and remotely apply Caddy JSON reverse-proxy configuration using a containerized Caddy runtime.

02Release Notes

2026.08.12.1

Changed: Rendered Caddy configurations now use their SHA-256 digest as the artifact name, so validation and deployment refer to exact configuration content instead of mutable current outputs.

Changed: Validation and apply results are recorded by swamp method outputs; the redundant validation and apply data resources are no longer produced.

Fixed: Compound apply methods no longer return duplicate data instance names after successfully updating the remote Caddy service.

Upgrade note: validateConfig and applyConfig now require configName instead of configJson. Run renderReverseProxy first and pass its config artifact name. Replace consumers of validation/current and apply/current with the corresponding swamp method output or @swamp/method-summary report.

03Models1
@evrardjp/caddyv2026.08.12.1caddy.ts

Global Arguments

ArgumentTypeDescription
nodeHost?stringSSH hostname or IP of the node running Caddy; required for apply methods
nodeUserstringSSH user for the node
nodePortnumberSSH port
nodeIdentityFilestringSSH private key path
workDirstringRemote directory containing Caddy config and compose file
containerImagestringCaddy container image used for validation/apply
fn renderReverseProxy(sites: array)
Render Caddy JSON config for HTTPS/HTTP reverse proxy sites
ArgumentTypeDescription
sitesarray
fn validateConfig(configName: string)
Validate Caddy JSON config before shipping it to a host using Caddy's own parser
ArgumentTypeDescription
configNamestring
fn applyConfig()
Validate and apply a rendered Caddy config artifact on the target host
fn applyReverseProxy()
Render, validate, and apply reverse proxy sites on the target host

Resources

config(infinite)— Rendered Caddy JSON config artifact
04Previous Versions1
2026.07.20.1

2026.07.20.1

Added: Initial release of @evrardjp/caddy, with reverse-proxy JSON rendering, Caddy-native validation, and remote Docker Compose deployment over SSH.

Added: Upstream transport configuration requires an explicit decision about TLS certificate verification.

Fixed: Remote paths and file content are safely encoded, HTTP-only sites honor disabled TLS, and failed Compose startup no longer removes a running proxy.

Fixed: Container and host restarts now load the durable managed Caddy configuration instead of returning to the bootstrap placeholder.

05Stats
A
100 / 100
Downloads
5
Archive size
8.6 KB
  • Has README or module doc2/2earned
  • README has a code example1/1earned
  • README is substantive1/1earned
  • Most symbols documented1/1earned
  • No slow types (deprecated)1/1earned
  • Dependencies pass trust audit2/2earned
  • Has description1/1earned
  • Platform support declared (or universal)2/2earned
  • License declared1/1earned
  • Verified public repository2/2earned
06Platforms
07Labels