From ddc7ce5dec398c30f7b5665bdfa52aa66b64d111 Mon Sep 17 00:00:00 2001 From: Moepchi Date: Sun, 27 Sep 2026 19:45:16 +0000 Subject: [PATCH] Compose: trust the tunnel's client IP by default The bundled setup is only reachable through cloudflared, so without TRUST_PROXY every user shares one IP and the per-IP connection limit (10) would cap the whole instance. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU --- docker-compose.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index fe90c55..b063144 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -6,6 +6,11 @@ services: restart: unless-stopped environment: - PORT=8080 + # This file publishes no port - the gateway is only reachable through + # the cloudflared tunnel below, so the client IP it forwards can be + # trusted (per-IP limits would otherwise see every user as the tunnel). + # Remove this if you publish a port directly instead. + - TRUST_PROXY=1 # Nothing in here needs Linux capabilities (unprivileged port, plain # TCP/UDP sockets), so drop them all. cap_drop: [ALL]