diff --git a/server-ce/Dockerfile b/server-ce/Dockerfile index a8798a9e6c..dce3f6d015 100644 --- a/server-ce/Dockerfile +++ b/server-ce/Dockerfile @@ -93,6 +93,8 @@ ENV WEB_API_USER "sharelatex" ENV SHARELATEX_APP_NAME "Overleaf Community Edition" +ENV OPTIMISE_PDF "true" + EXPOSE 80 diff --git a/server-ce/settings.coffee b/server-ce/settings.coffee index 9912fd1ea6..ef2fdd4115 100644 --- a/server-ce/settings.coffee +++ b/server-ce/settings.coffee @@ -22,6 +22,9 @@ TMP_DIR = '/var/lib/sharelatex/tmp' settings = + clsi: + optimiseInDocker: process.env['OPTIMISE_PDF'] == 'true' + brandPrefix: "" allowAnonymousReadAndWriteSharing: