mitm-core / ProxyConfig
Type Alias: ProxyConfig
ProxyConfig =
object
Defined in: src/config.registry.ts:6
Configuration options for the proxy server, controlling caching, TLS certificate handling, default pipeline registration, and timeouts.
Properties
handshakeTimeoutMs?
optionalhandshakeTimeoutMs?:number
Defined in: src/config.registry.ts:56
Maximum time, in milliseconds, to wait for the client to complete the TLS ClientHello.
Default
10000leafCacheDir?
optionalleafCacheDir?:string
Defined in: src/config.registry.ts:19
Directory used to store cached TLS leaf certificates.
Default
"~/.mitm-core"pluginTimeoutMs?
optionalpluginTimeoutMs?:number
Defined in: src/config.registry.ts:72
Maximum time, in milliseconds, to wait for plugin execution to finish. Set to 0 to disable the timeout completely.
Default
10000rootCa?
optionalrootCa?:object
Defined in: src/config.registry.ts:42
Root Certificate Authority (CA) credentials used to sign generated TLS leaf certificates during HTTPS interception.
The certificate and private key must be compatible CA credentials.
cert
cert:
string|Buffer
CA certificate, provided as a PEM string or Buffer.
key
key:
string|Buffer
CA private key, provided as a PEM string or Buffer.
upstreamTimeoutMs?
optionalupstreamTimeoutMs?:number
Defined in: src/config.registry.ts:64
Maximum time, in milliseconds, allowed for an upstream operation before the configured timeout is reached.
Default
30000useCertificateCache?
optionaluseCertificateCache?:boolean
Defined in: src/config.registry.ts:12
Enables caching of generated TLS leaf certificates.
Default
trueuseDefaultPipelines?
optionaluseDefaultPipelines?:boolean
Defined in: src/config.registry.ts:34
Determines whether the default request and response processing pipelines are registered.
Default
trueuseResponseCache?
optionaluseResponseCache?:boolean
Defined in: src/config.registry.ts:26
Enables caching of proxy responses to improve performance.
Default
false