diff options
| author | yyamashita <yyamashita@hetzner.yyamashita.com> | 2026-07-02 23:17:37 +0900 |
|---|---|---|
| committer | yyamashita <yyamashita@hetzner.yyamashita.com> | 2026-07-02 23:17:37 +0900 |
| commit | 1a41762754f8897827f09b46b37ab234515039be (patch) | |
| tree | 1ab4ecb614893c585968a16e94117c97acdeb532 /caddy/entrypoint.sh | |
| parent | 1a7b5adf8484ec0f2b6feb350b578142e186ab26 (diff) | |
Temporarily disable proxy auth (PROXY_NO_AUTH=1)
Add PROXY_NO_AUTH env var support to entrypoint.sh to skip basicauth
generation. Set to 1 in docker-compose.yml to allow unauthenticated access.
Revert by removing the environment block from docker-compose.yml.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'caddy/entrypoint.sh')
| -rw-r--r-- | caddy/entrypoint.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/caddy/entrypoint.sh b/caddy/entrypoint.sh index cf123ce..16edf36 100644 --- a/caddy/entrypoint.sh +++ b/caddy/entrypoint.sh @@ -3,9 +3,9 @@ set -e PROXY_CONF=/tmp/proxy_forward.caddy -# Build basicauth lines from shared users.conf +# Build basicauth lines from shared users.conf (skip if PROXY_NO_AUTH=1) AUTH_LINES="" -if [ -f /etc/proxy/users.conf ]; then +if [ "${PROXY_NO_AUTH:-0}" != "1" ] && [ -f /etc/proxy/users.conf ]; then while IFS=' ' read -r user pass || [ -n "$user" ]; do [ -z "$user" ] && continue case "$user" in \#*) continue ;; esac |
