Skip to content

Commit c5a6854

Browse files
committed
fix: unify max request size default values to 20mb
1 parent 9133d50 commit c5a6854

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

‎deploy/docker/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Image can be configured by setting environment variables.
3636
| `ENCRYPTION_PASSWORD` | Encryption password | `lowcoder.org` |
3737
| `ENCRYPTION_SALT` | Salt used for encrypting password | `lowcoder.org` |
3838
| `CORS_ALLOWED_DOMAINS` | CORS allowed domains | `*` |
39-
| `LOWCODER_MAX_REQUEST_SIZE` | Lowcoder max request size | `5m` |
39+
| `LOWCODER_MAX_REQUEST_SIZE` | Lowcoder max request size | `20m` |
4040
| `LOWCODER_API_SERVICE_URL` | Lowcoder API service URL | `http://localhost:8080` |
4141
| `LOWCODER_NODE_SERVICE_URL` | Lowcoder Node service (js executor) URL | `http://localhost:6060` |
4242
| `DEFAULT_ORGS_PER_USER` | Default maximum organizations per user | `100` |
@@ -122,7 +122,7 @@ Image can be configured by setting environment variables.
122122
| --------------------------------| --------------------------------------------------------------------| ------------------------------------------------------- |
123123
| `PUID` | ID of user running services. It will own all created logs and data. | `9001` |
124124
| `PGID` | ID of group of the user running services. | `9001` |
125-
| `LOWCODER_MAX_REQUEST_SIZE` | Lowcoder max request size | `5m` |
125+
| `LOWCODER_MAX_REQUEST_SIZE` | Lowcoder max request size | `20m` |
126126
| `LOWCODER_API_SERVICE_URL` | Lowcoder API service URL | `http://localhost:8080` |
127127
| `LOWCODER_NODE_SERVICE_URL` | Lowcoder Node service (js executor) URL | `http://localhost:6060` |
128128

‎deploy/docker/docker-compose-multi.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ services:
7575
environment:
7676
PUID: "9001"
7777
PGID: "9001"
78-
LOWCODER_MAX_REQUEST_SIZE: 5m
78+
LOWCODER_MAX_REQUEST_SIZE: 20m
7979
LOWCODER_API_SERVICE_URL: "http://lowcoder-api-service:8080"
8080
LOWCODER_NODE_SERVICE_URL: "http://lowcoder-node-service:6060"
8181
restart: unless-stopped

‎deploy/docker/docker-compose.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ services:
3737
LOWCODER_API_SERVICE_URL: "http://localhost:8080"
3838
LOWCODER_NODE_SERVICE_URL: "http://localhost:6060"
3939
# frontend parameters
40-
LOWCODER_MAX_REQUEST_SIZE: 5m
40+
LOWCODER_MAX_REQUEST_SIZE: 20m
4141
volumes:
4242
- ./lowcoder-stacks:/lowcoder-stacks
4343
restart: unless-stopped

‎deploy/docker/frontend/01-update-nginx-conf.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ else
1818
ln -s /etc/nginx/nginx-http.conf /etc/nginx/nginx.conf
1919
fi;
2020

21-
sed -i "s@__LOWCODER_MAX_REQUEST_SIZE__@${LOWCODER_MAX_REQUEST_SIZE:=5m}@" /etc/nginx/nginx.conf
21+
sed -i "s@__LOWCODER_MAX_REQUEST_SIZE__@${LOWCODER_MAX_REQUEST_SIZE:=20m}@" /etc/nginx/nginx.conf
2222
sed -i "s@__LOWCODER_API_SERVICE_URL__@${LOWCODER_API_SERVICE_URL:=http://localhost:8080}@" /etc/nginx/nginx.conf
2323
sed -i "s@__LOWCODER_NODE_SERVICE_URL__@${LOWCODER_NODE_SERVICE_URL:=http://localhost:6060}@" /etc/nginx/nginx.conf
2424

2525
echo "nginx config updated with:"
26-
echo " Lowcoder max upload size: ${LOWCODER_MAX_REQUEST_SIZE:=5m}"
26+
echo " Lowcoder max upload size: ${LOWCODER_MAX_REQUEST_SIZE:=20m}"
2727
echo " Lowcoder api service URL: ${LOWCODER_API_SERVICE_URL:=http://localhost:8080}"
2828
echo " Lowcoder node service URL: ${LOWCODER_NODE_SERVICE_URL:=http://localhost:6060}"

0 commit comments

Comments
 (0)