Skip to content

Commit

Permalink
Fix reference to phase name (#957)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewryno authored Sep 25, 2024
1 parent 09bc9fd commit 8e176f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion traffic-policy/actions/forward-internal/behavior.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

When the Forward Internal action executes, it will look up the specified endpoint and relay any incoming traffic. The endpoint being forwarded to will behave as if the traffic was sent directly to it and execute all of the actions in its associated Traffic Policy. The endpoint being forwarded to must exist in the same ngrok account and be the same protocol as the forwarding endpoint (e.g. an HTTP public endpoint can only forward to an HTTP private endpoint). You also may not forward traffic to a second private endpoint or back to the original endpoint in a loop.

If the forwarding is successful, the response from the upstream for the private endpoint will be sent back to the client making the original request. No further actions in the `on_http_request` phase will be executed and no traffic will be sent to the upstream for the public endpoint.
If the forwarding is successful, the response from the upstream for the private endpoint will be sent back to the client making the original request. No further actions in the `inbound` phase will be executed and no traffic will be sent to the upstream for the public endpoint.

If the forwarding is unsuccessful because the specified endpoint doesn't exist, is offline, or encounters another error, the action will return an error and follow the behavior that is specified by `on_error` (see [Managing Fallback Behavior](#on-error)).

Expand Down

0 comments on commit 8e176f5

Please sign in to comment.