diff --git a/nginx/Dockerfile b/nginx/Dockerfile index 2d3f2a4d..c8e3db5d 100644 --- a/nginx/Dockerfile +++ b/nginx/Dockerfile @@ -89,6 +89,7 @@ ENV \ PHP_POST_MAX_SIZE=128M \ PHP_PROCESS_CONTROL_TIMEOUT=60 \ PHP_REQUEST_TERMINATE_TIMEOUT=60 \ - PHP_UPLOAD_MAX_FILESIZE=128M + PHP_UPLOAD_MAX_FILESIZE=128M \ + SOLR_HOCR_PLUGIN_PATH=/opt/solr/server/solr/contrib/ocrhighlighting/lib COPY --link rootfs / diff --git a/nginx/rootfs/etc/confd/templates/www.conf.tmpl b/nginx/rootfs/etc/confd/templates/www.conf.tmpl index d0d68890..24760ed2 100644 --- a/nginx/rootfs/etc/confd/templates/www.conf.tmpl +++ b/nginx/rootfs/etc/confd/templates/www.conf.tmpl @@ -436,3 +436,5 @@ clear_env = yes ;php_admin_value[error_log] = /var/log/php83/$pool.error.log ;php_admin_flag[log_errors] = on ;php_admin_value[memory_limit] = 32M + +env['SOLR_HOCR_PLUGIN_PATH'] = {{ getenv "SOLR_HOCR_PLUGIN_PATH" }}