I am using Caddy as a reverse proxy which adds basic auth a webapp. Browsers add the authorization header to almost every request. For manifest.json it is not added.
2. Error messages and/or full log output:
The browser returns a 401 for the manifest.json.
3. Caddy version:
Latest docker image.
4. How I installed and ran Caddy:
This is my current config. I need to exclude manifest.json files.
I tried matcher but this solution isnt also working:
https://sub.domain.dev {
tls /etc/certs/fullchain.pem /etc/certs/privkey.pem
# Matcher for requests that are NOT for manifest.json (as a file)
@notManifest {
not file manifest.json
}
# Apply basic auth only to requests that are NOT for manifest.json
basic_auth @notManifest {
user $2y$10$1a/fjasklfdjasldkfjasdf
}
# Reverse proxy all requests to glance:8080
reverse_proxy glance:8080
}