mirror of
https://github.com/caddyserver/caddy.git
synced 2024-12-27 06:03:48 +03:00
acmeserver: Trim slashes from path prefix
See https://caddy.community/t/mtls-tls-internal-error/12807
This commit is contained in:
parent
885a9aaf48
commit
2de7e14e1c
1 changed files with 3 additions and 3 deletions
|
@ -150,9 +150,9 @@ func (ash *Handler) Provision(ctx caddy.Context) error {
|
||||||
// create the router for the ACME endpoints
|
// create the router for the ACME endpoints
|
||||||
acmeRouterHandler := acmeAPI.NewHandler(acmeAPI.HandlerOptions{
|
acmeRouterHandler := acmeAPI.NewHandler(acmeAPI.HandlerOptions{
|
||||||
CA: auth,
|
CA: auth,
|
||||||
DB: acmeDB, // stores all the server state
|
DB: acmeDB, // stores all the server state
|
||||||
DNS: ash.Host, // used for directory links; TODO: not needed (follow-up upstream with step-ca)
|
DNS: ash.Host, // used for directory links; TODO: not needed (follow-up upstream with step-ca)
|
||||||
Prefix: ash.PathPrefix, // used for directory links
|
Prefix: strings.Trim(ash.PathPrefix, "/"), // used for directory links
|
||||||
})
|
})
|
||||||
|
|
||||||
// extract its http.Handler so we can use it directly
|
// extract its http.Handler so we can use it directly
|
||||||
|
|
Loading…
Reference in a new issue