Skip to content

Commit

Permalink
Add missing configuration options to cdn directive (#560)
Browse files Browse the repository at this point in the history
  • Loading branch information
silverbackdan authored Oct 22, 2024
1 parent 2968d51 commit 13ce774
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions plugins/caddy/configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -441,14 +441,20 @@ func parseConfiguration(cfg *Configuration, h *caddyfile.Dispenser, isGlobal boo
if len(args) > 0 {
cdn.Dynamic, _ = strconv.ParseBool(args[0])
}
case "email":
cdn.Email = h.RemainingArgs()[0]
case "hostname":
cdn.Hostname = h.RemainingArgs()[0]
case "network":
cdn.Network = h.RemainingArgs()[0]
case "provider":
cdn.Provider = h.RemainingArgs()[0]
case "service_id":
cdn.ServiceID = h.RemainingArgs()[0]
case "strategy":
cdn.Strategy = h.RemainingArgs()[0]
case "zone_id":
cdn.ZoneID = h.RemainingArgs()[0]
default:
return h.Errf("unsupported cdn directive: %s", directive)
}
Expand Down

0 comments on commit 13ce774

Please sign in to comment.