Skip to main content

Module caddy_templates

Module caddy_templates 

Source
Expand description

Caddy template rendering step

This module provides the RenderCaddyTemplatesStep which handles rendering of Caddy configuration templates to the build directory. This step prepares Caddy Caddyfile for deployment to the remote host.

§Key Features

  • Template rendering for Caddy TLS proxy configuration
  • Integration with the CaddyProjectGenerator for file generation
  • Build directory preparation for deployment operations
  • Automatic extraction of TLS-enabled services from tracker config

§Usage Context

This step is typically executed during the release workflow, after infrastructure provisioning and software installation, to prepare the Caddy configuration files for deployment.

§Architecture

This step follows the three-level architecture:

  • Command (Level 1): ReleaseCommandHandler orchestrates the release workflow
  • Step (Level 2): This RenderCaddyTemplatesStep handles template rendering
  • The templates are rendered locally, no remote action is needed

Structs§

RenderCaddyTemplatesStep
Step that renders Caddy templates to the build directory