Interface IMidwayKoaConfigurationOptions

Hierarchy

  • IConfigurationOptions
    • IMidwayKoaConfigurationOptions

Properties

ca?: string | Buffer | (string | Buffer)[]

https ca

cert?: string | Buffer | (string | Buffer)[]

https cert

globalPrefix?: string

http global prefix

hostname?: string

application hostname, 127.0.0.1 as default

http2?: boolean

http2 support

key?: string | Buffer | (Object | Buffer)[]

https key

keys?: string[]

cookies sign keys

maxIpsCount?: number

Max IPs read from proxy IP header, default to 0 (means infinity)

port?: number

application http port

proxy?: boolean

Trust proxy headers

proxyIpHeader?: string

Proxy IP header, defaults to X-Forwarded-For

serverTimeout?: number

server timeout in milliseconds, default to 2 minutes.

for special request, just use ctx.req.setTimeout(ms)

See

https://nodejs.org/api/http.html#http_server_timeout

subdomainOffset?: number

Subdomain offset

Generated using TypeDoc