summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/caddypki/acmeserver/acmeserver.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/caddypki/acmeserver/acmeserver.go b/modules/caddypki/acmeserver/acmeserver.go
index e6399ea..7f9195e 100644
--- a/modules/caddypki/acmeserver/acmeserver.go
+++ b/modules/caddypki/acmeserver/acmeserver.go
@@ -150,9 +150,9 @@ func (ash *Handler) Provision(ctx caddy.Context) error {
// create the router for the ACME endpoints
acmeRouterHandler := acmeAPI.NewHandler(acmeAPI.HandlerOptions{
CA: auth,
- DB: acmeDB, // stores all the server state
- DNS: ash.Host, // used for directory links; TODO: not needed (follow-up upstream with step-ca)
- Prefix: ash.PathPrefix, // used for directory links
+ DB: acmeDB, // stores all the server state
+ DNS: ash.Host, // used for directory links; TODO: not needed (follow-up upstream with step-ca)
+ Prefix: strings.Trim(ash.PathPrefix, "/"), // used for directory links
})
// extract its http.Handler so we can use it directly