UNPKG

mission.api

Version:
44 lines (43 loc) 1.41 kB
/**************************************************************************************** ************************ Web Server Config Interface ************************************ ****************************************************************************************/ /// <reference types="express" /> /// <reference types="cors" /> import { CorsOptions, Request, Response } from '../vendor'; export interface StaticFileConfig { dotfiles: string; etag: boolean; extensions: string[]; index: boolean | string[]; maxAge: string; redirect: boolean; setHeaders: (res: Response, path: string, stat: any) => any; } export interface WebServerConfig { apiPort: number; isHttpsEnabled: boolean; httpsCertificatepath: string; httpsKeypath: string; corsOptions: CorsOptions; urlencodedOptions?: UrlencodedOptions; optionsJson?: OptionsJson; } export interface OptionsJson { inflate?: boolean; limit?: number | string; } export interface UrlencodedOptions extends OptionsJson { extended?: boolean; parameterLimit?: number; } export interface LoggerInstance { log: Function; info: Function; warn: Function; error: Function; } /** Morgan Config */ export declare const morganType: string; export declare const morganOption: { skip: (req: Request<import("express-serve-static-core").ParamsDictionary>, res: Response) => boolean; };