Provision implements caddy.Provisioner.
(ctx caddy.Context)
| 46 | |
| 47 | // Provision implements caddy.Provisioner. |
| 48 | func (fl FolderLoader) Provision(ctx caddy.Context) error { |
| 49 | repl, ok := ctx.Value(caddy.ReplacerCtxKey).(*caddy.Replacer) |
| 50 | if !ok { |
| 51 | repl = caddy.NewReplacer() |
| 52 | } |
| 53 | for k, path := range fl { |
| 54 | fl[k] = repl.ReplaceKnown(path, "") |
| 55 | } |
| 56 | return nil |
| 57 | } |
| 58 | |
| 59 | // LoadCertificates loads all the certificates+keys in the directories |
| 60 | // listed in fl from all files ending with .pem. This method of loading |
nothing calls this directly
no test coverage detected