You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/platforms/fly.md
+5-2Lines changed: 5 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -446,15 +446,18 @@ Example voice-call config with ngrok:
446
446
"enabled": true,
447
447
"config": {
448
448
"provider": "twilio",
449
-
"tunnel": { "provider": "ngrok" }
449
+
"tunnel": { "provider": "ngrok" },
450
+
"webhookSecurity": {
451
+
"allowedHosts": ["example.ngrok.app"]
452
+
}
450
453
}
451
454
}
452
455
}
453
456
}
454
457
}
455
458
```
456
459
457
-
The ngrok tunnel runs inside the container and provides a public webhook URL without exposing the Fly app itself.
460
+
The ngrok tunnel runs inside the container and provides a public webhook URL without exposing the Fly app itself. Set `webhookSecurity.allowedHosts` to the public tunnel hostname so forwarded host headers are accepted.
-`tunnel.allowNgrokFreeTierLoopbackBypass: true` allows Twilio webhooks with invalid signatures **only** when `tunnel.provider="ngrok"` and `serve.bind` is loopback (ngrok local agent). Use for local dev only.
112
118
- Ngrok free tier URLs can change or add interstitial behavior; if `publicUrl` drifts, Twilio signatures will fail. For production, prefer a stable domain or Tailscale funnel.
113
119
120
+
## Webhook Security
121
+
122
+
When a proxy or tunnel sits in front of the Gateway, the plugin reconstructs the
123
+
public URL for signature verification. These options control which forwarded
124
+
headers are trusted.
125
+
126
+
`webhookSecurity.allowedHosts` allowlists hosts from forwarding headers.
127
+
128
+
`webhookSecurity.trustForwardingHeaders` trusts forwarded headers without an allowlist.
129
+
130
+
`webhookSecurity.trustedProxyIPs` only trusts forwarded headers when the request
0 commit comments