1. The problem I’m having:
could someone help me to implement basic_auth for applications such as minio in this case?
when I setup the current config below, I get the basic_auth prompt and type the correct credentials, then it will redirect me to /login , and again I have the basic_auth prompt , and again type the crendetials and it redirect me again to /login , then I type minio login/password, then again the basic_auth prompt show.
I have tried to setup basic_auth to /login only , but Minio app have redirection when accessing / to /login , and then basic_auth is not shown which can cause issues for me.
anyone can support here ? it is a bit tricky as I want to setup this basic_auth to another applications such as Keycloak etc … means if there is regex to used in Caddy to fix this issue would be nice to suggest what is available
thank you
3. Caddy version: v2.5.2
4. How I installed and ran Caddy: Docker
a. System environment: Docker
b. Command: docker-compose
PASTE OVER THIS, BETWEEN THE ``` LINES.
Please use the preview pane to ensure it looks nice.
c. Service/unit/compose file: docker-compose
PASTE OVER THIS, BETWEEN THE ``` LINES.
Please use the preview pane to ensure it looks nice.
d. My complete Caddy config:
{
# Global options block. Entirely optional, https is on by default
# Optional email key for lets encrypt
email info@BASEURL.com
# Optional staging lets encrypt for testing. Comment out for production.
# acme_ca https://acme-staging-v02.api.letsencrypt.org/directory
}
(common) {
header /* {
-Server
-x-powered-by
-x-debug-token
-x-debug-token-link
-x-robots-tag
}
}
d-minio.BASEURL.org {
handle {
basicauth {
InnoyaDev AUTH-TOKEN
}
reverse_proxy d-minio:9001
}
log {
output file /var/log/caddy/d-minio.BASEURL.org-access.log
format json
}
import common
}