mirror of
https://github.com/nikdoof/pocket-id.git
synced 2025-12-22 13:59:24 +00:00
feat: add option to disable Caddy in the Docker container
This commit is contained in:
@@ -4,13 +4,17 @@ node frontend/build &
|
||||
echo "Starting backend..."
|
||||
cd backend && ./pocket-id-backend &
|
||||
|
||||
echo "Starting Caddy..."
|
||||
if [ "$CADDY_DISABLED" != "true" ]; then
|
||||
echo "Starting Caddy..."
|
||||
|
||||
# Check if TRUST_PROXY is set to true and use the appropriate Caddyfile
|
||||
if [ "$TRUST_PROXY" = "true" ]; then
|
||||
caddy start --adapter caddyfile --config /etc/caddy/Caddyfile.trust-proxy &
|
||||
# Check if TRUST_PROXY is set to true and use the appropriate Caddyfile
|
||||
if [ "$TRUST_PROXY" = "true" ]; then
|
||||
caddy start --adapter caddyfile --config /etc/caddy/Caddyfile.trust-proxy &
|
||||
else
|
||||
caddy start --adapter caddyfile --config /etc/caddy/Caddyfile &
|
||||
fi
|
||||
else
|
||||
caddy start --adapter caddyfile --config /etc/caddy/Caddyfile &
|
||||
echo "Caddy is disabled. Skipping..."
|
||||
fi
|
||||
|
||||
wait
|
||||
wait
|
||||
|
||||
Reference in New Issue
Block a user