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]