PAL7Config

Updated at:

Parameter

Type

Description

Example

object

The configuration for Layer 7 applications.

RequestQueryRewriteConfig

object

The configuration for rewriting HTTP request query parameters.

Ops

array

An array of rewrite operations.

PAL7ConfigRewriteOp

A rewrite operation.

JsHookConfig

object

The configuration for rewriting internal network requests in JavaScript.

Mode

string

The mode for rewriting internal network requests in JavaScript. The default value is disabled. Valid values:

  • disabled: Disables traffic redirection for JavaScript.

  • whitelist: Enables the whitelist mode to redirect traffic as needed.

disabled

ReplaceRules

array

An array of rules for rewriting internal network requests in JavaScript.

PAL7ConfigReplaceRule

A rule for rewriting internal network requests in JavaScript.

BypassConfig

object

The configuration for anonymous access.

AppBypassFroms

array

An array of source IP address ranges that are allowed to anonymously access the application.

string

An IP address range in CIDR format.

10.x.x.1/24

Mode

string

The anonymous access mode. The default value is disabled. Valid values:

  • disabled: Disables anonymous access.

  • url: Sets anonymous access at the URL level.

  • app: Sets anonymous access at the application level.

disabled

UrlBypassRules

array

An array of rules for anonymous access to URLs.

object

A rule for anonymous access to a URL.

Paths

array

The URL paths that allow anonymous access.

string

A URL path.

/api/xxx

Froms

array

An array of source IP address ranges that are allowed to anonymously access the application paths.

string

An IP address range in CIDR format.

10.x.x.1/24

CertId

string

The certificate ID. This parameter is required when you use a custom proxy domain name.

cert-xxxx

ResponseHeaderRewriteConfig

object

The configuration for rewriting HTTP response headers.

Ops

array

An array of rewrite operations.

PAL7ConfigRewriteOp

A rewrite operation.

ResponseRewriteConfig

object

The configuration for rewriting internal domain names in HTML.

Mode

string

The rewrite mode. The default value is auto. Valid values:

  • disabled: Disables rewriting of internal domain names in HTML.

  • auto: Enables the automatic mode. The system automatically detects and rewrites internal domain names in HTML.

auto

ReplaceRules

array

An array of rewrite rules.

PAL7ConfigReplaceRule

A rewrite rule.

RequestHeaderRewriteConfig

object

The rules for rewriting HTTP request headers.

Ops

array

An array of rewrite operations.

PAL7ConfigRewriteOp

A rewrite operation.

DnsConfig

object

The DNS configuration.

DnsServers

array

An array of DNS server addresses. The gateway preferentially uses the DNS servers configured here to resolve internal domain names.

string

A DNS server address.

10.x.x.1

ProxyDomainTypes

string

The type of the proxy domain name. Valid values:

  • automatic: Uses a mapped proxy domain name.

  • custom: Uses a custom proxy domain name.

automatic