Hello,
I’m trying to use Caddy as a basic auth and proxy front-end to Jenkins. I’m currently hosting on AWS and using their certificate service for HTTPS so have disabled Caddy tls. My caddy file looks like:
0.0.0.0:443
tls off
log stdout
errors stdout
basicauth / username 123password
proxy / {$JENKINS_URL}
The problem I’m running into is that basicauth doesn’t seem to be working. After deploying I get the prompt for the username/password but after entering valid credentials and submitting they are denied. It’s worth noting that if I remove the basicauth line completely that proxying works just fine.
What am I doing wrong here? Do basicauth and proxy not play well together? Does the order within the Caddyfile matter?
Any help you can provide would be much appreciated!
Thanks,
Illya