1. Caddy version (caddy version
):
docker latest v2 alpine Docker Hub
2. How I run Caddy:
a. System environment:
OS:
Distributor ID: Ubuntu
Description: Ubuntu 20.04.4 LTS
Release: 20.04
Codename: focal
docker version:
Client: Docker Engine - Community
Version: 20.10.14
API version: 1.41
Go version: go1.16.15
Git commit: a224086
Built: Thu Mar 24 01:48:02 2022
OS/Arch: linux/amd64
Context: default
Experimental: true
Server: Docker Engine - Community
Engine:
Version: 20.10.14
API version: 1.41 (minimum version 1.12)
Go version: go1.16.15
Git commit: 87a90dc
Built: Thu Mar 24 01:45:53 2022
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.5.11
GitCommit: 3df54a852345ae127d1fa3092b95168e4a88e2f8
runc:
Version: 1.0.3
GitCommit: v1.0.3-0-gf46b6ba
docker-init:
Version: 0.19.0
GitCommit: de40ad0
b. Command:
see next section for docker command
c. Service/unit/compose file:
docker run -d --name caddy -v /etc/Caddyfile:/etc/caddy/Caddyfile -v /etc/caddy:/root/.local/share/caddy --net host --restart on-failure caddy/caddy:alpine
d. My complete Caddyfile or JSON config:
subdomain.personaldomain.net {
encode gzip
reverse_proxy 127.0.0.1:9998
basicauth {
username bcrypt_base64_encoded_pass
}
}
3. The problem I’m having:
I’m having an issue with the basicauth to my internal service. For some reason there is a login prompt loop that occurs.
tested on: on mobile (haven’t seemed to experience the issue on PC) iPhone chrome browser and safari tested. Latest app versions and iOS. On chrome and safari, it log me in to my service but then when I click around on the website, it prompts me to login again, however I can hit cancel or I can enter the login username/pass and gain access again.
4. Error messages and/or full log output:
no errors in the logs.
5. What I already tried:
I’ve tried searching google, which the auto fill shows that people are searching for this same problem - but no relevant forum posts show up in the results.
I tried looking at caddy logs but literally nothing shows up there.
I think I’m setting up the basicauth correctly based on various examples I’ve found.