mirror of
https://github.com/Moepchi/webspeak3.git
synced 2026-12-03 01:42:50 +08:00
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 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
This commit is contained in:
1 parent
a79f2aa4a7
commit
ddc7ce5dec
1 file changed
+5
@@ -6,6 +6,11 @@ services:
|
|||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
environment:
|
environment:
|
||||||
- PORT=8080
|
- 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
|
# Nothing in here needs Linux capabilities (unprivileged port, plain
|
||||||
# TCP/UDP sockets), so drop them all.
|
# TCP/UDP sockets), so drop them all.
|
||||||
cap_drop: [ALL]
|
cap_drop: [ALL]
|
||||||
|
|||||||
Reference in new issue
Block a user