From 65945cce5a1957d423248aef678f8ef5c082c8ce Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Mon, 28 Oct 2024 18:52:30 +0000 Subject: [PATCH] ci: apply automated fixes --- docs/traffic-policy/actions/index.mdx | 5 ++++- docs/traffic-policy/concepts/phases.mdx | 2 +- docs/traffic-policy/concepts/rules.mdx | 2 +- docs/traffic-policy/macros/core.mdx | 2 +- docs/traffic-policy/macros/http.mdx | 2 +- docs/traffic-policy/macros/index.mdx | 2 +- docs/traffic-policy/macros/utility.mdx | 8 ++++---- docs/traffic-policy/resources/ip-policy.mdx | 2 +- .../resources/tls-certificate-authority.mdx | 2 +- docs/traffic-policy/variables/action.mdx | 2 +- docs/traffic-policy/variables/connection.mdx | 2 +- docs/traffic-policy/variables/endpoint.mdx | 2 +- docs/traffic-policy/variables/index.mdx | 2 +- docs/traffic-policy/variables/req.mdx | 2 +- docs/traffic-policy/variables/res.mdx | 2 +- docs/traffic-policy/variables/tls.mdx | 2 +- 16 files changed, 22 insertions(+), 19 deletions(-) diff --git a/docs/traffic-policy/actions/index.mdx b/docs/traffic-policy/actions/index.mdx index 9b8384c8f..59bc75e26 100644 --- a/docs/traffic-policy/actions/index.mdx +++ b/docs/traffic-policy/actions/index.mdx @@ -2,11 +2,13 @@ <<<<<<< HEAD title: Actions --- + ======= sidebar_position: 0 title: Overview pagination_next: traffic-policy/actions/add-headers pagination_label: Actions + --- # Actions @@ -27,4 +29,5 @@ Traffic Policy actions enable you to modify the behavior of traffic flowing thro | [remove-headers](remove-headers) | Remove headers from incoming requests or outgoing responses. | on_http_request, on_http_response | | [restrict-ips](restrict-ips) | Allow or deny traffic based on source IP. | on_http_request, on_tcp_connect | | [url-rewrite](url-rewrite) | Rewrite request URLs transparently using regular expressions. | on_http_request | ->>>>>>> 01526618 (feat: more foundation) + +> > > > > > > 01526618 (feat: more foundation) diff --git a/docs/traffic-policy/concepts/phases.mdx b/docs/traffic-policy/concepts/phases.mdx index 0a70e785c..255400e53 100644 --- a/docs/traffic-policy/concepts/phases.mdx +++ b/docs/traffic-policy/concepts/phases.mdx @@ -1,3 +1,3 @@ --- title: Phases ---- \ No newline at end of file +--- diff --git a/docs/traffic-policy/concepts/rules.mdx b/docs/traffic-policy/concepts/rules.mdx index f8631f2c4..c4f6aa732 100644 --- a/docs/traffic-policy/concepts/rules.mdx +++ b/docs/traffic-policy/concepts/rules.mdx @@ -1,3 +1,3 @@ --- title: Rules ---- \ No newline at end of file +--- diff --git a/docs/traffic-policy/macros/core.mdx b/docs/traffic-policy/macros/core.mdx index fbfef9067..a3c09fa5c 100644 --- a/docs/traffic-policy/macros/core.mdx +++ b/docs/traffic-policy/macros/core.mdx @@ -1,3 +1,3 @@ --- title: Core Macros ---- \ No newline at end of file +--- diff --git a/docs/traffic-policy/macros/http.mdx b/docs/traffic-policy/macros/http.mdx index 303799f0c..281c5c35f 100644 --- a/docs/traffic-policy/macros/http.mdx +++ b/docs/traffic-policy/macros/http.mdx @@ -1,3 +1,3 @@ --- title: HTTP Macros ---- \ No newline at end of file +--- diff --git a/docs/traffic-policy/macros/index.mdx b/docs/traffic-policy/macros/index.mdx index 02590e53a..dda012830 100644 --- a/docs/traffic-policy/macros/index.mdx +++ b/docs/traffic-policy/macros/index.mdx @@ -3,4 +3,4 @@ title: Overview sidebar_position: 0 pagination_label: Macros pagination_next: traffic-policy/macros/core ---- \ No newline at end of file +--- diff --git a/docs/traffic-policy/macros/utility.mdx b/docs/traffic-policy/macros/utility.mdx index d4a5c4f06..ac7f26bfa 100644 --- a/docs/traffic-policy/macros/utility.mdx +++ b/docs/traffic-policy/macros/utility.mdx @@ -8,10 +8,10 @@ import ConfigExample from "/src/components/ConfigExample.tsx"; ngrok also exposes a number of utility macros in the Traffic Policy engine that are available in addition to the core macros. These macros should be generally available on all phases unless marked otherwise. -| Name | Return Type | Description | -| -------------------------------------------------------------------------- | ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| [`rand.double()`](#randdouble--double) | `double` | Returns a random `double` between `0` and `1`. | -| [`rand.int(min int, max int)`](#randintmin-int-max-int--int) | `int` | Returns a random `int` between the provided `min` and `max` values. Only supports positive integers and `min` must be larger than the provided `max`. By default, `min` is `0` and `max` is `1`. | +| Name | Return Type | Description | +| ------------------------------------------------------------ | ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| [`rand.double()`](#randdouble--double) | `double` | Returns a random `double` between `0` and `1`. | +| [`rand.int(min int, max int)`](#randintmin-int-max-int--int) | `int` | Returns a random `int` between the provided `min` and `max` values. Only supports positive integers and `min` must be larger than the provided `max`. By default, `min` is `0` and `max` is `1`. | ## `rand.double()` → `double` diff --git a/docs/traffic-policy/resources/ip-policy.mdx b/docs/traffic-policy/resources/ip-policy.mdx index 934a326a1..91d524b8b 100644 --- a/docs/traffic-policy/resources/ip-policy.mdx +++ b/docs/traffic-policy/resources/ip-policy.mdx @@ -1,3 +1,3 @@ --- title: IP Policies ---- \ No newline at end of file +--- diff --git a/docs/traffic-policy/resources/tls-certificate-authority.mdx b/docs/traffic-policy/resources/tls-certificate-authority.mdx index 5605eeaf3..95af2576d 100644 --- a/docs/traffic-policy/resources/tls-certificate-authority.mdx +++ b/docs/traffic-policy/resources/tls-certificate-authority.mdx @@ -1,3 +1,3 @@ --- title: TLS Certificate Authorities ---- \ No newline at end of file +--- diff --git a/docs/traffic-policy/variables/action.mdx b/docs/traffic-policy/variables/action.mdx index 27923fe59..7aad5ef8d 100644 --- a/docs/traffic-policy/variables/action.mdx +++ b/docs/traffic-policy/variables/action.mdx @@ -1,3 +1,3 @@ --- title: Action Variables ---- \ No newline at end of file +--- diff --git a/docs/traffic-policy/variables/connection.mdx b/docs/traffic-policy/variables/connection.mdx index 10c9b704e..21e0b7a03 100644 --- a/docs/traffic-policy/variables/connection.mdx +++ b/docs/traffic-policy/variables/connection.mdx @@ -1,3 +1,3 @@ --- title: Connection Variables ---- \ No newline at end of file +--- diff --git a/docs/traffic-policy/variables/endpoint.mdx b/docs/traffic-policy/variables/endpoint.mdx index a06040428..5a253c22d 100644 --- a/docs/traffic-policy/variables/endpoint.mdx +++ b/docs/traffic-policy/variables/endpoint.mdx @@ -1,3 +1,3 @@ --- title: Endpoint Variables ---- \ No newline at end of file +--- diff --git a/docs/traffic-policy/variables/index.mdx b/docs/traffic-policy/variables/index.mdx index bb40ea071..d818388ad 100644 --- a/docs/traffic-policy/variables/index.mdx +++ b/docs/traffic-policy/variables/index.mdx @@ -3,4 +3,4 @@ title: Overview sidebar_position: 0 pagination_label: Variables pagination_next: traffic-policy/variables/action ---- \ No newline at end of file +--- diff --git a/docs/traffic-policy/variables/req.mdx b/docs/traffic-policy/variables/req.mdx index 2cb20c73c..1032c7f07 100644 --- a/docs/traffic-policy/variables/req.mdx +++ b/docs/traffic-policy/variables/req.mdx @@ -1,3 +1,3 @@ --- title: HTTP Request Variables ---- \ No newline at end of file +--- diff --git a/docs/traffic-policy/variables/res.mdx b/docs/traffic-policy/variables/res.mdx index 83ba85f00..7980cd745 100644 --- a/docs/traffic-policy/variables/res.mdx +++ b/docs/traffic-policy/variables/res.mdx @@ -1,3 +1,3 @@ --- title: HTTP Response Variables ---- \ No newline at end of file +--- diff --git a/docs/traffic-policy/variables/tls.mdx b/docs/traffic-policy/variables/tls.mdx index 4d28396e1..da2889ed3 100644 --- a/docs/traffic-policy/variables/tls.mdx +++ b/docs/traffic-policy/variables/tls.mdx @@ -1,3 +1,3 @@ --- title: TLS Variables ---- \ No newline at end of file +---