Skip to content

Commit

Permalink
ci: apply automated fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] authored Oct 28, 2024
1 parent 8df4318 commit 65945cc
Show file tree
Hide file tree
Showing 16 changed files with 22 additions and 19 deletions.
5 changes: 4 additions & 1 deletion docs/traffic-policy/actions/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@
<<<<<<< HEAD
title: Actions
---

=======
sidebar_position: 0
title: Overview
pagination_next: traffic-policy/actions/add-headers
pagination_label: Actions

---

# Actions
Expand All @@ -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)
2 changes: 1 addition & 1 deletion docs/traffic-policy/concepts/phases.mdx
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
---
title: Phases
---
---
2 changes: 1 addition & 1 deletion docs/traffic-policy/concepts/rules.mdx
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
---
title: Rules
---
---
2 changes: 1 addition & 1 deletion docs/traffic-policy/macros/core.mdx
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
---
title: Core Macros
---
---
2 changes: 1 addition & 1 deletion docs/traffic-policy/macros/http.mdx
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
---
title: HTTP Macros
---
---
2 changes: 1 addition & 1 deletion docs/traffic-policy/macros/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ title: Overview
sidebar_position: 0
pagination_label: Macros
pagination_next: traffic-policy/macros/core
---
---
8 changes: 4 additions & 4 deletions docs/traffic-policy/macros/utility.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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`

Expand Down
2 changes: 1 addition & 1 deletion docs/traffic-policy/resources/ip-policy.mdx
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
---
title: IP Policies
---
---
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
---
title: TLS Certificate Authorities
---
---
2 changes: 1 addition & 1 deletion docs/traffic-policy/variables/action.mdx
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
---
title: Action Variables
---
---
2 changes: 1 addition & 1 deletion docs/traffic-policy/variables/connection.mdx
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
---
title: Connection Variables
---
---
2 changes: 1 addition & 1 deletion docs/traffic-policy/variables/endpoint.mdx
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
---
title: Endpoint Variables
---
---
2 changes: 1 addition & 1 deletion docs/traffic-policy/variables/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ title: Overview
sidebar_position: 0
pagination_label: Variables
pagination_next: traffic-policy/variables/action
---
---
2 changes: 1 addition & 1 deletion docs/traffic-policy/variables/req.mdx
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
---
title: HTTP Request Variables
---
---
2 changes: 1 addition & 1 deletion docs/traffic-policy/variables/res.mdx
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
---
title: HTTP Response Variables
---
---
2 changes: 1 addition & 1 deletion docs/traffic-policy/variables/tls.mdx
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
---
title: TLS Variables
---
---

0 comments on commit 65945cc

Please sign in to comment.