Files
CaddyProxyManager/backend/embed/caddy/host.hbs
Pacerino b4509d12e7 [Backend][Frontend] Add host plugins with module config and schema-driven UI
Introduce per-host plugin support: Caddy module discovery, module
config endpoints, plugin schemas (basicauth, cloudflare) and the
host plugins API. On the frontend, add the Plugins page, plugin/host
plugin dialogs and schema-driven form fields.
2026-06-15 14:17:34 +02:00

22 lines
380 B
Handlebars

{{host.domains}} {
{{#if BasicAuth}}
basic_auth {
{{#each BasicAuth}}
{{User}} {{Hash}}
{{/each}}
}
{{/if}}
{{#if host.upstreams}}
{{#if host.matcher}}
reverse_proxy {{host.matcher}}{{#each host.upstreams}} {{backend}}{{/each}}
{{else}}
reverse_proxy{{#each host.upstreams}} {{backend}}{{/each}}
{{/if}}
{{/if}}
{{#if LogPath}}
log {
output file {{LogPath}}
}
{{/if}}
}