File tree Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -116,8 +116,8 @@ LOWCODER_NODE_SERVICE_SECRET_SALT="lowcoder.org"
116116# #
117117# # Frontend parameters
118118# #
119- #  Lowcoder max request size
120- LOWCODER_MAX_REQUEST_SIZE = 20m 
119+ #  Lowcoder max request size in kb/mb/gb 
120+ LOWCODER_MAX_REQUEST_SIZE = 20mb 
121121#  Lowcoder max query timeout (in seconds)
122122LOWCODER_MAX_QUERY_TIMEOUT = 120 
123123#  Default lowcoder query timeout
Original file line number Diff line number Diff line change 1818   ln -s /etc/nginx/nginx-http.conf /etc/nginx/nginx.conf
1919fi ; 
2020
21- sed -i " s@__LOWCODER_MAX_REQUEST_SIZE__@${LOWCODER_MAX_REQUEST_SIZE:= 20m} @" 
21+ #  Normalize max. request size for usage with nginx
22+ MAX_REQUEST_SIZE=$( echo " ${LOWCODER_MAX_REQUEST_SIZE:= 20m} " |  perl -pe ' s/^([ \t]*)(?<number>\d+(\.\d+)?)([ \t]*)(?<unit>[kKmMgGtT]{1})?([bB \t]*)$/"$+{number}" . lc($+{unit})/e' ) 
23+ 
24+ 
25+ sed -i " s@__LOWCODER_MAX_REQUEST_SIZE__@${MAX_REQUEST_SIZE} @" 
2226sed -i " s@__LOWCODER_MAX_QUERY_TIMEOUT__@${LOWCODER_MAX_QUERY_TIMEOUT:= 120} @" 
2327sed -i " s@__LOWCODER_API_SERVICE_URL__@${LOWCODER_API_SERVICE_URL:= http:// localhost: 8080} @" 
2428sed -i " s@__LOWCODER_NODE_SERVICE_URL__@${LOWCODER_NODE_SERVICE_URL:= http:// localhost: 6060} @" 
2529
2630echo  " nginx config updated with:" 
27- echo  "     Lowcoder max upload size: ${LOWCODER_MAX_REQUEST_SIZE := 20m} " 
31+ echo  "     Lowcoder max upload size: ${MAX_REQUEST_SIZE := 20m} " 
2832echo  "     Lowcoder api service URL: ${LOWCODER_API_SERVICE_URL:= http:// localhost: 8080} " 
2933echo  "    Lowcoder node service URL: ${LOWCODER_NODE_SERVICE_URL:= http:// localhost: 6060} " 
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ global:
3434    nodeServiceSecret : " 62e348319ab9f5c43c3b5a380b4d82525cdb68740f21140e767989b509ab0aa2" 
3535    nodeServiceSalt : " lowcoder.org" 
3636    maxQueryTimeout : 120 
37-     maxRequestSize : " 20m " 
37+     maxRequestSize : " 20mb " 
3838    snapshotRetentionTime : 30 
3939    marketplacePrivateMode : true 
4040  cookie :
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments