Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update infra/aws/compose.yaml.tftpl
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
  • Loading branch information
kevincodex1 and coderabbitai[bot] committed Jul 5, 2026
commit 680b7c07212d0bcf3ab1eafd2342feacdfca7ed9
10 changes: 6 additions & 4 deletions infra/aws/compose.yaml.tftpl
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,12 @@ services:
GITLAWB_P2P_PORT: "${p2p_port}"
GITLAWB_REPOS_DIR: /data/repos
GITLAWB_KEY: /data/keys/identity.pem
# Behind the Caddy reverse-proxy sidecar, which appends the real client as
# the rightmost X-Forwarded-For hop. Lets the push rate limiter key on the
# true client IP rather than Caddy's container address.
GITLAWB_TRUSTED_PROXY: x-forwarded-for
# Only trust X-Forwarded-For when the Caddy sidecar above is actually
# deployed (domain_name != ""). Caddy appends the real client as the
# rightmost hop, letting the push rate limiter key on the true client IP
# rather than Caddy's container address. Without Caddy, this header is
# fully client-controlled and must not be trusted.
GITLAWB_TRUSTED_PROXY: "${domain_name != "" ? "x-forwarded-for" : ""}"
# iCaptcha proof-of-intelligence gate (spam protection on create/fork/register)
ICAPTCHA_MODE: ${icaptcha_mode}
ICAPTCHA_PUBKEY: ${icaptcha_pubkey}
Expand Down