diff --git a/examples/agent-config/http-traffic-policy.mdx b/examples/agent-config/http-traffic-policy.mdx index 77ad09723..22ff85a43 100644 --- a/examples/agent-config/http-traffic-policy.mdx +++ b/examples/agent-config/http-traffic-policy.mdx @@ -3,7 +3,7 @@ tunnels: example: proto: http addr: 80 - policy: + traffic_policy: inbound: - name: FooBarParamNotFound expressions: diff --git a/examples/agent-config/tcp-traffic-policy.mdx b/examples/agent-config/tcp-traffic-policy.mdx index 381978d51..b47bb2f62 100644 --- a/examples/agent-config/tcp-traffic-policy.mdx +++ b/examples/agent-config/tcp-traffic-policy.mdx @@ -3,20 +3,20 @@ tunnels: example: proto: tcp addr: 22 - policy: + traffic_policy: inbound: - - name: DenyTrafficOutsideUS - expressions: - - "conn.geo.country_code != 'US'" - actions: - - type: deny - - name: "LogRequestsFromKnownIP" - expressions: - - "conn.client_ip == '110.0.0.1'" - actions: - - type: log - config: - metadata: - event: "known-ip", - data: "110.0.0.1" + - name: DenyTrafficOutsideUS + expressions: + - "conn.geo.country_code != 'US'" + actions: + - type: deny + - name: "LogRequestsFromKnownIP" + expressions: + - "conn.client_ip == '110.0.0.1'" + actions: + - type: log + config: + metadata: + event: "known-ip", + data: "110.0.0.1" ``` diff --git a/examples/agent-config/tls-traffic-policy.mdx b/examples/agent-config/tls-traffic-policy.mdx index 1c00d2d01..210966344 100644 --- a/examples/agent-config/tls-traffic-policy.mdx +++ b/examples/agent-config/tls-traffic-policy.mdx @@ -3,7 +3,7 @@ tunnels: example: proto: tls addr: 443 - policy: + traffic_policy: inbound: - name: EnforceTLS1.3 expressions: