1 | import { CorsOptions, CorsOptionsDelegate } from './external/cors-options.interface';
|
2 | import { HttpsOptions } from './external/https-options.interface';
|
3 | import { NestApplicationContextOptions } from './nest-application-context-options.interface';
|
4 | /**
|
5 | * @publicApi
|
6 | */
|
7 | export interface NestApplicationOptions extends NestApplicationContextOptions {
|
8 | /**
|
9 | * CORS options from [CORS package](https://github.com/expressjs/cors#configuration-options)
|
10 | */
|
11 | cors?: boolean | CorsOptions | CorsOptionsDelegate<any>;
|
12 | /**
|
13 | * Whether to use underlying platform body parser.
|
14 | */
|
15 | bodyParser?: boolean;
|
16 | /**
|
17 | * Set of configurable HTTPS options
|
18 | */
|
19 | httpsOptions?: HttpsOptions;
|
20 | /**
|
21 | * Whether to register the raw request body on the request. Use `req.rawBody`.
|
22 | */
|
23 | rawBody?: boolean;
|
24 | /**
|
25 | * Force close open HTTP connections. Useful if restarting your application hangs due to
|
26 | * keep-alive connections in the HTTP adapter.
|
27 | */
|
28 | forceCloseConnections?: boolean;
|
29 | }
|