@@ -76,7 +76,7 @@ NGINX_WORKER_PROCESSES=${NGINX_WORKER_PROCESSES:-1}
7676# Limiting the maximum number of simultaneous connections due to possible memory shortage
7777[ $( ulimit -n) -gt 1048576 ] && NGINX_WORKER_CONNECTIONS=${NGINX_WORKER_CONNECTIONS:- 1048576} || NGINX_WORKER_CONNECTIONS=${NGINX_WORKER_CONNECTIONS:- $(ulimit -n)}
7878
79- JWT_ENABLED=${JWT_ENABLED:- true }
79+ JWT_ENABLED=${JWT_ENABLED:- false }
8080
8181# validate user's vars before usinig in json
8282if [ " ${JWT_ENABLED} " == " true" ]; then
@@ -111,6 +111,7 @@ JSON_BIN=${APP_DIR}/npm/json
111111JSON=" ${JSON_BIN} -q -f ${ONLYOFFICE_DEFAULT_CONFIG} "
112112JSON_LOG=" ${JSON_BIN} -q -f ${ONLYOFFICE_LOG4JS_CONFIG} "
113113JSON_EXAMPLE=" ${JSON_BIN} -q -f ${ONLYOFFICE_EXAMPLE_CONFIG} "
114+ JSON_DEFAULT=" ${JSON_BIN} -q -f /etc/onlyoffice/documentserver/default.json"
114115
115116LOCAL_SERVICES=()
116117
@@ -331,6 +332,17 @@ update_ds_settings(){
331332 ${JSON} -I -e " this.services.CoAuthoring.token.inbox.inBody = ${JWT_IN_BODY} "
332333 ${JSON} -I -e " this.services.CoAuthoring.token.outbox.inBody = ${JWT_IN_BODY} "
333334
335+ ${JSON_DEFAULT} -I -e " this.services.CoAuthoring.server.savetimeoutdelay = 5000"
336+ ${JSON_DEFAULT} -I -e " this.services.CoAuthoring.server.limits_tempfile_upload = 504857600"
337+
338+ ${JSON_DEFAULT} -I -e " this.FileConverter.converter.downloadTimeout.connectionAndInactivity = '10m'"
339+ ${JSON_DEFAULT} -I -e " this.FileConverter.converter.downloadTimeout.wholeCycle = '10m'"
340+ ${JSON_DEFAULT} -I -e " this.FileConverter.converter.idownloadAttemptMaxCount = 10"
341+ ${JSON_DEFAULT} -I -e " this.FileConverter.converter.inputLimits[0].zip.uncompressed = '500MB'"
342+ ${JSON_DEFAULT} -I -e " this.FileConverter.converter.inputLimits[1].zip.uncompressed = '500MB'"
343+ ${JSON_DEFAULT} -I -e " this.FileConverter.converter.inputLimits[2].zip.uncompressed = '500MB'"
344+ ${JSON_DEFAULT} -I -e " this.services.CoAuthoring['request-filtering-agent'].allowPrivateIPAddress = true"
345+
334346 if [ -f " ${ONLYOFFICE_EXAMPLE_CONFIG} " ]; then
335347 ${JSON_EXAMPLE} -I -e " this.server.token.enable = ${JWT_ENABLED} "
336348 ${JSON_EXAMPLE} -I -e " this.server.token.secret = '${JWT_SECRET} '"
649661documentserver-static-gzip.sh ${ONLYOFFICE_DATA_CONTAINER}
650662
651663echo " ${JWT_MESSAGE} "
664+ service php8.1-fpm restart
652665
653666tail -f /var/log/${COMPANY_NAME} /** /* .log &
654667wait $!
0 commit comments