mirror of
https://github.com/nestjs/nest.git
synced 2026-02-21 23:11:44 +00:00
34 lines
995 B
TypeScript
34 lines
995 B
TypeScript
import {
|
|
CorsOptions,
|
|
CorsOptionsDelegate,
|
|
} from './external/cors-options.interface';
|
|
import { HttpsOptions } from './external/https-options.interface';
|
|
import { NestApplicationContextOptions } from './nest-application-context-options.interface';
|
|
|
|
/**
|
|
* @publicApi
|
|
*/
|
|
export interface NestApplicationOptions extends NestApplicationContextOptions {
|
|
/**
|
|
* CORS options from [CORS package](https://github.com/expressjs/cors#configuration-options)
|
|
*/
|
|
cors?: boolean | CorsOptions | CorsOptionsDelegate<any>;
|
|
/**
|
|
* Whether to use underlying platform body parser.
|
|
*/
|
|
bodyParser?: boolean;
|
|
/**
|
|
* Set of configurable HTTPS options
|
|
*/
|
|
httpsOptions?: HttpsOptions;
|
|
/**
|
|
* Whether to register the raw request body on the request. Use `req.rawBody`.
|
|
*/
|
|
rawBody?: boolean;
|
|
/**
|
|
* Force close open HTTP connections. Useful if restarting your application hangs due to
|
|
* keep-alive connections in the HTTP adapter.
|
|
*/
|
|
forceCloseConnections?: boolean;
|
|
}
|