File tree Expand file tree Collapse file tree 5 files changed +7
-1
lines changed Expand file tree Collapse file tree 5 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ RUN npm install --production
14
14
# Env variables
15
15
ENV SERVER_PORT 3000
16
16
ENV PAYLOAD_MAX_SIZE 1048576
17
+ ENV PAYLOAD_TIMEOUT 120000
17
18
ENV TIMEOUT_SERVER 120000
18
19
ENV TIMEOUT_SOCKET 140000
19
20
Original file line number Diff line number Diff line change @@ -61,6 +61,8 @@ SERVER_PORT default is 3000
61
61
62
62
PAYLOAD_MAX_SIZE default is 1048576 (1 MB)
63
63
64
+ PAYLOAD_TIMEOUT default is 2 minutes (120 000 milliseconds)
65
+
64
66
TIMEOUT_SERVER default is 2 minutes (120 000 milliseconds)
65
67
66
68
TIMEOUT_SOCKET default is 2 minutes and 20 seconds (140 000 milliseconds)
Original file line number Diff line number Diff line change 3
3
module . exports = {
4
4
SERVER_PORT : process . env . SERVER_PORT || 3000 ,
5
5
PAYLOAD_MAX_SIZE : process . env . PAYLOAD_MAX_SIZE || 1048576 ,
6
+ PAYLOAD_TIMEOUT : process . env . PAYLOAD_TIMEOUT || 60000 * 2 ,
6
7
TIMEOUT_SERVER : process . env . TIMEOUT_SERVER || 60000 * 2 ,
7
8
TIMEOUT_SOCKET : process . env . TIMEOUT_SOCKET || 70000 * 2
8
9
}
Original file line number Diff line number Diff line change 1
1
SERVER_PORT = 3000
2
2
PAYLOAD_MAX_SIZE = 1048576
3
+ PAYLOAD_TIMEOUT = 120000
3
4
TIMEOUT_SERVER = 120000
4
5
TIMEOUT_SOCKET = 140000
Original file line number Diff line number Diff line change @@ -12,7 +12,8 @@ module.exports = [
12
12
output : 'stream' ,
13
13
parse : true ,
14
14
allow : 'multipart/form-data' ,
15
- maxBytes : parseInt ( config . PAYLOAD_MAX_SIZE , 10 )
15
+ maxBytes : parseInt ( config . PAYLOAD_MAX_SIZE , 10 ) ,
16
+ timeout : parseInt ( config . PAYLOAD_TIMEOUT , 10 )
16
17
} ,
17
18
timeout : {
18
19
server : parseInt ( config . TIMEOUT_SERVER , 10 ) ,
You can’t perform that action at this time.
0 commit comments