mirror of
https://github.com/Pacerino/CaddyProxyManager.git
synced 2026-08-04 11:15:08 -04:00
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.
22 lines
380 B
Handlebars
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}}
|
|
}
|