-
-
Notifications
You must be signed in to change notification settings - Fork 794
/
defaultOptions.js
37 lines (36 loc) · 1009 Bytes
/
defaultOptions.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import { createApiKey } from '../utils/index.js'
export default {
allowCache: false,
apiKey: createApiKey(),
corsAllowCredentials: true, // TODO no CLI option
corsAllowHeaders: 'accept,content-type,x-api-key,authorization',
corsAllowOrigin: '*',
corsExposedHeaders: 'WWW-Authenticate,Server-Authorization',
disableCookieValidation: false,
disableScheduledEvents: false,
dockerHost: 'localhost',
dockerHostServicePath: null,
dockerNetwork: null,
dockerReadOnly: true,
enforceSecureCookies: false,
functionCleanupIdleTimeSeconds: 60,
hideStackTraces: false,
host: 'localhost',
httpPort: 3000,
httpsProtocol: '',
lambdaPort: 3002,
layersDir: null,
noAuth: false,
noPrependStageInUrl: false,
noStripTrailingSlashInUrl: false,
noTimeout: false,
prefix: '',
printOutput: false,
resourceRoutes: false,
useChildProcesses: false,
useDocker: false,
useWorkerThreads: false,
webSocketHardTimeout: 7200,
webSocketIdleTimeout: 600,
websocketPort: 3001,
}