From 1a41762754f8897827f09b46b37ab234515039be Mon Sep 17 00:00:00 2001 From: yyamashita Date: Thu, 2 Jul 2026 23:17:37 +0900 Subject: 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 --- caddy/entrypoint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'caddy/entrypoint.sh') 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 -- cgit v1.2.3