Aller au contenu principal
Version: Next

IMidwayKoaConfigurationOptions

Hierarchy

  • IConfigurationOptions
    • IMidwayKoaConfigurationOptions

Index

Properties

optionalappLogger

appLogger?: ILogger

optionalca

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

https ca

optionalcert

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

https cert

optionalcontextLoggerApplyLogger

contextLoggerApplyLogger?: string

optionalcontextLoggerFormat

contextLoggerFormat?: any

optionalglobalPrefix

globalPrefix?: string

http global prefix

optionalhostname

hostname?: string

application hostname, 127.0.0.1 as default

optionalhttp2

http2?: boolean

http2 support

optionalkey

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

https key

optionalkeys

keys?: string[]

cookies sign keys

optionallogger

logger?: ILogger

optionalmaxIpsCount

maxIpsCount?: number

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

optionalport

port?: number

application http port

optionalproxy

proxy?: boolean

Trust proxy headers

optionalproxyIpHeader

proxyIpHeader?: string

Proxy IP header, defaults to X-Forwarded-For

optionalqueryParseMode

queryParseMode?: strict | extended | first

qs mode

optionalqueryParseOptions

queryParseOptions?: IParseOptions<undefined>

qs options

optionalserverOptions

serverOptions?: Record<string, any>

optionalserverTimeout

serverTimeout?: number

server timeout in milliseconds, default to 2 minutes.

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

@see

optionalsubdomainOffset

subdomainOffset?: number

Subdomain offset