File tree Expand file tree Collapse file tree 6 files changed +11
-2
lines changed Expand file tree Collapse file tree 6 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ Image can be configured by setting environment variables.
36
36
| ` ENCRYPTION_PASSWORD ` | Encryption password | ` lowcoder.org ` |
37
37
| ` ENCRYPTION_SALT ` | Salt used for encrypting password | ` lowcoder.org ` |
38
38
| ` CORS_ALLOWED_DOMAINS ` | CORS allowed domains | ` * ` |
39
+ | ` LOWCODER_MAX_REQUEST_SIZE ` | Lowcoder max request size | ` 5m ` |
39
40
| ` LOWCODER_API_SERVICE_URL ` | Lowcoder API service URL | ` http://localhost:8080 ` |
40
41
| ` LOWCODER_NODE_SERVICE_URL ` | Lowcoder Node service (js executor) URL | ` http://localhost:6060 ` |
41
42
| ` DEFAULT_ORGS_PER_USER ` | Default maximum organizations per user | ` 100 ` |
@@ -121,6 +122,7 @@ Image can be configured by setting environment variables.
121
122
| --------------------------------| --------------------------------------------------------------------| ------------------------------------------------------- |
122
123
| ` PUID ` | ID of user running services. It will own all created logs and data. | ` 9001 ` |
123
124
| ` PGID ` | ID of group of the user running services. | ` 9001 ` |
125
+ | ` LOWCODER_MAX_REQUEST_SIZE ` | Lowcoder max request size | ` 5m ` |
124
126
| ` LOWCODER_API_SERVICE_URL ` | Lowcoder API service URL | ` http://localhost:8080 ` |
125
127
| ` LOWCODER_NODE_SERVICE_URL ` | Lowcoder Node service (js executor) URL | ` http://localhost:6060 ` |
126
128
Original file line number Diff line number Diff line change @@ -75,6 +75,7 @@ services:
75
75
environment :
76
76
PUID : " 9001"
77
77
PGID : " 9001"
78
+ LOWCODER_MAX_REQUEST_SIZE : 5m
78
79
LOWCODER_API_SERVICE_URL : " http://lowcoder-api-service:8080"
79
80
LOWCODER_NODE_SERVICE_URL : " http://lowcoder-node-service:6060"
80
81
restart : unless-stopped
Original file line number Diff line number Diff line change @@ -36,6 +36,8 @@ services:
36
36
# api and node service parameters
37
37
LOWCODER_API_SERVICE_URL : " http://localhost:8080"
38
38
LOWCODER_NODE_SERVICE_URL : " http://localhost:6060"
39
+ # frontend parameters
40
+ LOWCODER_MAX_REQUEST_SIZE : 5m
39
41
volumes :
40
42
- ./lowcoder-stacks:/lowcoder-stacks
41
43
restart : unless-stopped
Original file line number Diff line number Diff line change 18
18
ln -s /etc/nginx/nginx-http.conf /etc/nginx/nginx.conf
19
19
fi ;
20
20
21
+ sed -i " s@__LOWCODER_MAX_REQUEST_SIZE__@${LOWCODER_MAX_REQUEST_SIZE:= 5m} @" /etc/nginx/nginx.conf
21
22
sed -i " s@__LOWCODER_API_SERVICE_URL__@${LOWCODER_API_SERVICE_URL:= http:// localhost: 8080} @" /etc/nginx/nginx.conf
22
23
sed -i " s@__LOWCODER_NODE_SERVICE_URL__@${LOWCODER_NODE_SERVICE_URL:= http:// localhost: 6060} @" /etc/nginx/nginx.conf
23
24
24
25
echo " nginx config updated with:"
25
- echo " Lowcoder api service URL: ${LOWCODER_API_SERVICE_URL} "
26
- echo " Lowcoder node service URL: ${LOWCODER_NODE_SERVICE_URL} "
26
+ echo " Lowcoder max upload size: ${LOWCODER_MAX_REQUEST_SIZE:= 5m} "
27
+ echo " Lowcoder api service URL: ${LOWCODER_API_SERVICE_URL:= http:// localhost: 8080} "
28
+ echo " Lowcoder node service URL: ${LOWCODER_NODE_SERVICE_URL:= http:// localhost: 6060} "
Original file line number Diff line number Diff line change 10
10
11
11
include /etc/nginx/mime.types;
12
12
default_type application/octet-stream;
13
+ client_max_body_size __LOWCODER_MAX_REQUEST_SIZE__;
13
14
14
15
log_format main '"$time_local" client=$remote_addr '
15
16
'method=$request_method request="$request" '
Original file line number Diff line number Diff line change 10
10
11
11
include /etc/nginx/mime.types;
12
12
default_type application/octet-stream;
13
+ client_max_body_size __LOWCODER_MAX_REQUEST_SIZE__;
13
14
14
15
log_format main '"$time_local" client=$remote_addr '
15
16
'method=$request_method request="$request" '
You can’t perform that action at this time.
0 commit comments