summaryrefslogtreecommitdiffhomepage
path: root/modules/caddytls
diff options
context:
space:
mode:
authorMatthew Holt <[email protected]>2024-04-13 17:08:11 -0600
committerMatthew Holt <[email protected]>2024-04-13 17:08:11 -0600
commitdc9dd2e4b3e266cb1267f672e3bcfd50c67cc3d4 (patch)
treea0a55cd05b1637266d6e6f7be273dbe4cf50c511 /modules/caddytls
parent567d96c6245fbca6086687daa40d3f37530b4f36 (diff)
downloadcaddy-dc9dd2e4b3e266cb1267f672e3bcfd50c67cc3d4.tar.gz
caddy-dc9dd2e4b3e266cb1267f672e3bcfd50c67cc3d4.zip
caddytls: Still provision permission module if ask is specified
Only needed for JSON configs, and only temporarily as the ask property is deprecated and will be removed.
Diffstat (limited to 'modules/caddytls')
-rw-r--r--modules/caddytls/tls.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/caddytls/tls.go b/modules/caddytls/tls.go
index 2ec7bd8fb..bb4cd9715 100644
--- a/modules/caddytls/tls.go
+++ b/modules/caddytls/tls.go
@@ -192,6 +192,13 @@ func (t *TLS) Provision(ctx caddy.Context) error {
if err != nil {
return fmt.Errorf("preparing 'ask' endpoint: %v", err)
}
+ perm := PermissionByHTTP{
+ Endpoint: t.Automation.OnDemand.Ask,
+ }
+ if err := perm.Provision(ctx); err != nil {
+ return fmt.Errorf("provisioning 'ask' module: %v", err)
+ }
+ t.Automation.OnDemand.permission = perm
}
// automation/management policies