跳到主要内容
版本:3.0.0

IMidwayExpressConfigurationOptions

Hierarchy

  • IConfigurationOptions
    • IMidwayExpressConfigurationOptions

Index

Properties

optionalappLogger

appLogger?: ILogger

optionalca

ca?: string | Buffer<ArrayBufferLike> | (string | Buffer<ArrayBufferLike>)[]

https ca

optionalcert

cert?: string | Buffer<ArrayBufferLike> | (string | Buffer<ArrayBufferLike>)[]

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<ArrayBufferLike> | (Object | Buffer<ArrayBufferLike>)[]

https key

optionalkeys

keys?: string | string[]

session or cookie secret key

optionallogger

logger?: ILogger

optionalport

port?: number

application http port

optionalserverOptions

serverOptions?: Record<string, any>

https/https/http2 server options