File tree Expand file tree Collapse file tree 3 files changed +23
-1
lines changed
Expand file tree Collapse file tree 3 files changed +23
-1
lines changed Original file line number Diff line number Diff line change 5959 "allowedOrigins": "*",
6060 "dappPath": "/api/v0/dapp",
6161 "port": 3030,
62+ "requestSizeLimit": "5mb",
63+ "requestRateLimit": 100,
6264 "userPath": "/api/v0/user"
6365 },
6466 "signingStore": {
Original file line number Diff line number Diff line change 3333 "port" : {
3434 "type" : " integer"
3535 },
36+ "requestRateLimit" : {
37+ "type" : " integer"
38+ },
39+ "requestSizeLimit" : {
40+ "type" : " string"
41+ },
3642 "userPath" : {
3743 "type" : " string"
3844 }
157163 " port" ,
158164 " dappPath" ,
159165 " userPath" ,
160- " allowedOrigins"
166+ " allowedOrigins" ,
167+ " requestSizeLimit" ,
168+ " requestRateLimit"
161169 ],
162170 "properties" : {
163171 "allowedOrigins" : {
189197 "default" : 3030 ,
190198 "type" : " number"
191199 },
200+ "requestRateLimit" : {
201+ "description" : " The maximum number of requests per minute from a single IP address. Defaults to 100." ,
202+ "default" : 100 ,
203+ "type" : " number"
204+ },
205+ "requestSizeLimit" : {
206+ "description" : " The maximum size of incoming requests. Defaults to 1mb." ,
207+ "default" : " 1mb" ,
208+ "type" : " string"
209+ },
192210 "tls" : {
193211 "description" : " Deprecated, this option no longer has any effect. Will be removed in a future release." ,
194212 "type" : " boolean"
Original file line number Diff line number Diff line change @@ -12,6 +12,8 @@ config:
1212 dappPath : " /api/v0/dapp"
1313 userPath : " /api/v0/user"
1414 allowedOrigins : " *"
15+ requestSizeLimit : " 5mb"
16+ requestRateLimit : 100
1517 store :
1618 connection :
1719 type : sqlite
You can’t perform that action at this time.
0 commit comments