diff options
author | Ranveer Avhad <[email protected]> | 2024-05-28 05:36:54 +0530 |
---|---|---|
committer | GitHub <[email protected]> | 2024-05-27 20:06:54 -0400 |
commit | e6f46c8d78b77d0aefe50750dfd6f6a18ba138e5 (patch) | |
tree | 52595c03eeff48008d8f75edd8e26687c2a582b3 /modules/caddypki/acmeserver/caddyfile.go | |
parent | f6d2c293e752254769efe21c8d06a16ebad4845e (diff) | |
download | caddy-e6f46c8d78b77d0aefe50750dfd6f6a18ba138e5.tar.gz caddy-e6f46c8d78b77d0aefe50750dfd6f6a18ba138e5.zip |
acmeserver: Add `sign_with_root` for Caddyfile (#6345)v2.8.0
* Added sign_with_root option available in the Caddyfile
* Added tests for sign_with_root to validate the adapted JSON config
Diffstat (limited to 'modules/caddypki/acmeserver/caddyfile.go')
-rw-r--r-- | modules/caddypki/acmeserver/caddyfile.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/caddypki/acmeserver/caddyfile.go b/modules/caddypki/acmeserver/caddyfile.go index 7eaaec49a..c4d111128 100644 --- a/modules/caddypki/acmeserver/caddyfile.go +++ b/modules/caddypki/acmeserver/caddyfile.go @@ -42,6 +42,7 @@ func init() { // domains <domains...> // ip_ranges <addresses...> // } +// sign_with_root // } func parseACMEServer(h httpcaddyfile.Helper) ([]httpcaddyfile.ConfigValue, error) { h.Next() // consume directive name @@ -136,6 +137,11 @@ func parseACMEServer(h httpcaddyfile.Helper) ([]httpcaddyfile.ConfigValue, error acmeServer.Policy = &Policy{} } acmeServer.Policy.Deny = r + case "sign_with_root": + if h.NextArg() { + return nil, h.ArgErr() + } + acmeServer.SignWithRoot = true default: return nil, h.Errf("unrecognized ACME server directive: %s", h.Val()) } |