Fix #281: Add option to disable CPU-heavy tasks on startup
This commit is contained in:
parent
ecb77ddb56
commit
a42276b356
|
@ -185,6 +185,7 @@ Below is the complete list of parameters that can be set using environment varia
|
||||||
- **METRICS_HOST**: Defines StatsD listening host. Defaults to `localhost`.
|
- **METRICS_HOST**: Defines StatsD listening host. Defaults to `localhost`.
|
||||||
- **METRICS_PORT**: Defines StatsD listening port. Defaults to `8125`.
|
- **METRICS_PORT**: Defines StatsD listening port. Defaults to `8125`.
|
||||||
- **METRICS_PREFIX**: Defines StatsD metrics prefix for backend services. Defaults to `ds.`.
|
- **METRICS_PREFIX**: Defines StatsD metrics prefix for backend services. Defaults to `ds.`.
|
||||||
|
- **GENERATE_FONTS_THEMES_ENABLED**: When 'true' regenerates fonts list and the fonts thumbnails e.t.c. at each start. Defaults to `true`
|
||||||
|
|
||||||
## Installing ONLYOFFICE Document Server integrated with Community and Mail Servers
|
## Installing ONLYOFFICE Document Server integrated with Community and Mail Servers
|
||||||
|
|
||||||
|
|
|
@ -49,6 +49,8 @@ JWT_SECRET=${JWT_SECRET:-secret}
|
||||||
JWT_HEADER=${JWT_HEADER:-Authorization}
|
JWT_HEADER=${JWT_HEADER:-Authorization}
|
||||||
JWT_IN_BODY=${JWT_IN_BODY:-false}
|
JWT_IN_BODY=${JWT_IN_BODY:-false}
|
||||||
|
|
||||||
|
GENERATE_FONTS_THEMES_ENABLED=${GENERATE_FONTS_THEMES_ENABLED:-true}
|
||||||
|
|
||||||
if [[ ${PRODUCT_NAME} == "documentserver" ]]; then
|
if [[ ${PRODUCT_NAME} == "documentserver" ]]; then
|
||||||
REDIS_ENABLED=false
|
REDIS_ENABLED=false
|
||||||
else
|
else
|
||||||
|
@ -537,7 +539,9 @@ fi
|
||||||
service nginx start
|
service nginx start
|
||||||
|
|
||||||
# Regenerate the fonts list and the fonts thumbnails
|
# Regenerate the fonts list and the fonts thumbnails
|
||||||
documentserver-generate-allfonts.sh ${ONLYOFFICE_DATA_CONTAINER}
|
if [ "${GENERATE_FONTS_THEMES_ENABLED}" == "true" ]; then
|
||||||
|
documentserver-generate-allfonts.sh ${ONLYOFFICE_DATA_CONTAINER}
|
||||||
|
fi
|
||||||
documentserver-static-gzip.sh ${ONLYOFFICE_DATA_CONTAINER}
|
documentserver-static-gzip.sh ${ONLYOFFICE_DATA_CONTAINER}
|
||||||
|
|
||||||
tail -f /var/log/${COMPANY_NAME}/**/*.log
|
tail -f /var/log/${COMPANY_NAME}/**/*.log
|
||||||
|
|
Loading…
Reference in a new issue