(ctx caddy.Context)
| 111 | } |
| 112 | |
| 113 | func (p *PermissionByHTTP) Provision(ctx caddy.Context) error { |
| 114 | p.logger = ctx.Logger() |
| 115 | p.replacer = caddy.NewReplacer() |
| 116 | return nil |
| 117 | } |
| 118 | |
| 119 | func (p PermissionByHTTP) CertificateAllowed(ctx context.Context, name string) error { |
| 120 | // run replacer on endpoint URL (for environment variables) -- return errors to prevent surprises (#5036) |