-
-
Notifications
You must be signed in to change notification settings - Fork 794
/
commandOptions.js
155 lines (155 loc) · 4.54 KB
/
commandOptions.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
export default {
apiKey: {
usage:
'Defines the API key value to be used for endpoints marked as private. Defaults to a random hash.',
type: 'string',
},
corsAllowHeaders: {
usage:
'Used to build the Access-Control-Allow-Headers header for CORS support.',
type: 'string',
},
corsAllowOrigin: {
usage:
'Used to build the Access-Control-Allow-Origin header for CORS support.',
type: 'string',
},
corsDisallowCredentials: {
usage:
'Used to override the Access-Control-Allow-Credentials default (which is true) to false.',
type: 'boolean',
},
corsExposedHeaders: {
usage:
'Used to build the Access-Control-Exposed-Headers response header for CORS support',
type: 'string',
},
disableCookieValidation: {
usage: 'Used to disable cookie-validation on hapi.js-server',
type: 'boolean',
},
disableScheduledEvents: {
usage:
'Disables all scheduled events. Overrides configurations in serverless.yml.',
},
enforceSecureCookies: {
usage: 'Enforce secure cookies',
type: 'boolean',
},
hideStackTraces: {
usage: 'Hide the stack trace on lambda failure. Default: false',
type: 'boolean',
},
host: {
shortcut: 'o',
usage: 'The host name to listen on. Default: localhost',
type: 'string',
},
httpPort: {
usage: 'HTTP port to listen on. Default: 3000',
type: 'string',
},
httpsProtocol: {
shortcut: 'H',
usage:
'To enable HTTPS, specify directory (relative to your cwd, typically your project dir) for both cert.pem and key.pem files.',
type: 'string',
},
lambdaPort: {
usage: 'Lambda http port to listen on. Default: 3002',
type: 'string',
},
noPrependStageInUrl: {
usage: "Don't prepend http routes with the stage.",
type: 'boolean',
},
noStripTrailingSlashInUrl: {
usage: "Don't strip trailing slash from http routes.",
type: 'boolean',
},
noAuth: {
usage: 'Turns off all authorizers',
type: 'boolean',
},
ignoreJWTSignature: {
usage:
"When using HttpApi with a JWT authorizer, don't check the signature of the JWT token. This should only be used for local development.",
type: 'boolean',
},
noTimeout: {
shortcut: 't',
usage: 'Disables the timeout feature.',
type: 'boolean',
},
prefix: {
shortcut: 'p',
usage:
'Adds a prefix to every path, to send your requests to http://localhost:3000/prefix/[your_path] instead.',
type: 'string',
},
printOutput: {
usage: 'Outputs your lambda response to the terminal.',
type: 'boolean',
},
resourceRoutes: {
usage: 'Turns on loading of your HTTP proxy settings from serverless.yml.',
type: 'boolean',
},
useChildProcesses: {
usage: 'Uses separate node processes for handlers',
type: 'boolean',
},
useWorkerThreads: {
usage:
'Uses worker threads for handlers. Requires node.js v11.7.0 or higher',
type: 'boolean',
},
websocketPort: {
usage: 'Websocket port to listen on. Default: 3001',
type: 'string',
},
webSocketHardTimeout: {
usage:
'Set WebSocket hard timeout in seconds to reproduce AWS limits (https://docs.aws.amazon.com/apigateway/latest/developerguide/limits.html#apigateway-execution-service-websocket-limits-table). Default: 7200 (2 hours)',
type: 'string',
},
webSocketIdleTimeout: {
usage:
'Set WebSocket idle timeout in seconds to reproduce AWS limits (https://docs.aws.amazon.com/apigateway/latest/developerguide/limits.html#apigateway-execution-service-websocket-limits-table). Default: 600 (10 minutes)',
type: 'string',
},
useDocker: {
usage: 'Uses docker for node/python/ruby/provided',
type: 'boolean',
},
layersDir: {
usage:
'The directory layers should be stored in. Default: {codeDir}/.serverless-offline/layers',
type: 'string',
},
dockerReadOnly: {
usage: 'Marks if the docker code layer should be read only. Default: true',
type: 'boolean',
},
functionCleanupIdleTimeSeconds: {
usage: 'Number of seconds until an idle function is eligible for cleanup',
type: 'string',
},
allowCache: {
usage: 'Allows the code of lambda functions to cache if supported',
type: 'boolean',
},
dockerHost: {
usage: 'The host name of Docker. Default: localhost',
type: 'string',
},
dockerHostServicePath: {
usage:
'Defines service path which is used by SLS running inside Docker container',
type: 'string',
},
dockerNetwork: {
usage: 'The network that the Docker container will connect to',
type: 'string',
},
}