Skip to content

Commit

Permalink
feat: add conn.server_region to tcp / tls docs (#998)
Browse files Browse the repository at this point in the history
Adds `conn.server_region` to the TCP / TLS endpoint traffic policy
connection variables.

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
  • Loading branch information
nijikokun and autofix-ci[bot] authored Oct 22, 2024
1 parent dce5b36 commit aab145d
Showing 1 changed file with 18 additions and 7 deletions.
25 changes: 18 additions & 7 deletions traffic-policy/variables/conn-tcptls.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@ import ConfigExample from "/src/components/ConfigExample.tsx";

The following variables are available under the `conn` namespace:

| Name | Type | Description |
| -------------------------------------- | ----------- | ---------------------------------------------------- |
| [`conn.client_ip`](#connclient_ip) | `string` | Source IP of the connection to the ngrok endpoint. |
| [`conn.client_port`](#connclient_port) | `int32` | Source port of the connection to the ngrok endpoint. |
| [`conn.server_ip`](#connserver_ip) | `string` | The IP that this connection was established on. |
| [`conn.server_port`](#connserver_port) | `int32` | The port that this connection was established on. |
| [`conn.ts.start`](#conntsstart) | `timestamp` | Timestamp when the connection to ngrok was started. |
| Name | Type | Description |
| ------------------------------------------ | ----------- | ----------------------------------------------------------------------------------------------------------------------------------------- |
| [`conn.client_ip`](#connclient_ip) | `string` | Source IP of the connection to the ngrok endpoint. |
| [`conn.client_port`](#connclient_port) | `int32` | Source port of the connection to the ngrok endpoint. |
| [`conn.server_ip`](#connserver_ip) | `string` | The IP that this connection was established on. |
| [`conn.server_port`](#connserver_port) | `int32` | The port that this connection was established on. |
| [`conn.server_region`](#connserver_region) | `string` | The ngrok [PoP (Point of Presence)](/docs/network-edge/#points-of-presence) that this connection was established on and serviced through. |
| [`conn.ts.start`](#conntsstart) | `timestamp` | Timestamp when the connection to ngrok was started. |

### `conn.client_ip`

Expand Down Expand Up @@ -46,6 +47,16 @@ The port that this connection was established on.
}}
/>

### `conn.server_region`

The ngrok [PoP (Point of Presence)](/docs/network-edge/#points-of-presence) that this connection was established on and serviced through.

<ConfigExample
config={{
expressions: ["conn.server_region == 'eu'"],
}}
/>

### `conn.ts.start`

Timestamp when the connection to ngrok was started.
Expand Down

0 comments on commit aab145d

Please sign in to comment.