Skip to content

ProxyPolicyConfig

Defined in: packages/gateway/src/policies/proxy.ts:11

Configuration for the proxy policy.

optional headers?: Record<string, string>

Defined in: packages/gateway/src/policies/proxy.ts:13

Headers to add to the proxied request


optional preserveHost?: boolean

Defined in: packages/gateway/src/policies/proxy.ts:22

Whether to preserve the inbound Host header when proxying to URL upstreams. Default: false (Host is rewritten to the upstream target host).


optional skip?: (c) => boolean | Promise<boolean>

Defined in: packages/gateway/src/policies/types.ts:90

Skip this policy when condition returns true

unknown

boolean | Promise<boolean>

PolicyConfig.skip


optional stripHeaders?: string[]

Defined in: packages/gateway/src/policies/proxy.ts:15

Headers to strip from the proxied request


optional timeout?: number

Defined in: packages/gateway/src/policies/proxy.ts:17

Timeout in milliseconds. Default: 30000.