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 Aug 30, 2024
1 parent f8ca599 commit 1311390
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions docs/agent/config/v3.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ The `agent:` key is now **required** in the v3 configuration file as a parent fi
```yaml
verison: 3
agent:
authtoken: # <---- nested under agent
# <---- nested fields from "Agent Configuration"
authtoken:# <---- nested under agent
# <---- nested fields from "Agent Configuration"

endpoints: # <---- new* Top level field
endpoints: # <---- new* Top level field
```
_For a complete list of fields, checkout [agent configuration](/docs/agent/config/v3/#agent-configuration)._
Expand All @@ -22,6 +22,7 @@ _For a complete list of fields, checkout [agent configuration](/docs/agent/confi
Below are a collection of different agent configurations. Simply copy, replace any placeholder or example values with your own, and add it to your `ngrok.yml` file.

### Basic

```yaml
version: 3
agent:
Expand All @@ -34,6 +35,7 @@ endpoints:
```

### Multiple Endpoints

```yaml
version: 3
agent:
Expand All @@ -53,6 +55,7 @@ endpoints:
```

### Endpoint with an inline traffic policy

```yaml
version: 3
agent:
Expand All @@ -65,18 +68,19 @@ endpoints:
traffic_policy:
inbound:
- actions:
- type: custom-response
config:
status_code: 200
content: hello, traffic policy!
headers:
content-type: text/plain
- type: custom-response
config:
status_code: 200
content: hello, traffic policy!
headers:
content-type: text/plain
upstream:
url: 8080
protocol: http1
```

### Endpoints with a traffic policy (file path)

```yaml
version: 3
agent:
Expand Down

0 comments on commit 1311390

Please sign in to comment.