I’m trying to setup caddy to have letsencrypt everywhere and client authentication for one website.
As soon as I add one tls { clients ... }
directive it seems it is applied on all websites. Is it expected ? What am I doing wrong ?
This is my (simplified) config:
https://website-with-client-auth {
tls {
clients /etc/caddy/server-management.crt
}
proxy / http://target-server
}
https://website-without-client-auth {
proxy /florent http://127.0.0.1:59756/ {
without /florent
header_upstream X-Forwarded-Proto {scheme}
header_upstream X-Forwarded-For {remote}
header_upstream Host {host}
websocket
}
cors {
allow_credentials true
}
}