From 3f8c314da0e5fecf66aa863c964a1fd1286500c7 Mon Sep 17 00:00:00 2001 From: "Alexey.Golubev" Date: Tue, 17 Jan 2017 16:15:54 +0300 Subject: [PATCH] tune welcome page --- run-document-server.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/run-document-server.sh b/run-document-server.sh index e573031..c151be3 100644 --- a/run-document-server.sh +++ b/run-document-server.sh @@ -19,6 +19,8 @@ ONLYOFFICE_HTTPS_HSTS_MAXAGE=${ONLYOFFICE_HTTPS_HSTS_MAXAG:-31536000} SYSCONF_TEMPLATES_DIR="/app/onlyoffice/setup/config" NGINX_ONLYOFFICE_PATH="/etc/nginx/conf.d/onlyoffice-documentserver.conf"; +NGINX_ONLYOFFICE_INCLUDES_PATH="/etc/nginx/includes"; +NGINX_ONLYOFFICE_EXAMPLE_PATH=${NGINX_ONLYOFFICE_INCLUDES_PATH}/onlyoffice-documentserver-example.conf NGINX_CONFIG_PATH="/etc/nginx/nginx.conf" NGINX_WORKER_PROCESSES=${NGINX_WORKER_PROCESSES:-$(grep processor /proc/cpuinfo | wc -l)} @@ -178,6 +180,10 @@ update_nginx_settings(){ else cp ${SYSCONF_TEMPLATES_DIR}/nginx/onlyoffice-documentserver.conf ${NGINX_ONLYOFFICE_PATH} fi + + if [ -f "${NGINX_ONLYOFFICE_EXAMPLE_PATH}" ]; then + sed 's/linux/docker/' -i ${NGINX_ONLYOFFICE_EXAMPLE_PATH} + fi } update_supervisor_settings(){