From 4529548be9d42ae0c838cb7e2e0e5492b2a2e9e6 Mon Sep 17 00:00:00 2001 From: Mikel Larreategi Date: Mon, 11 Nov 2024 11:10:49 +0100 Subject: [PATCH 1/2] add more configurable options via env vars --- skeleton/docker-entrypoint.sh | 2 ++ skeleton/etc/zope.conf | 2 ++ 2 files changed, 4 insertions(+) diff --git a/skeleton/docker-entrypoint.sh b/skeleton/docker-entrypoint.sh index eff18f1..1005488 100755 --- a/skeleton/docker-entrypoint.sh +++ b/skeleton/docker-entrypoint.sh @@ -28,6 +28,8 @@ fi [ -z ${COMPILE_MO_FILES+x} ] && export COMPILE_MO_FILES=true [ -z ${DEBUG_MODE+x} ] && export DEBUG_MODE=off [ -z ${ZOPE_FORM_MEMORY_LIMIT+x} ] && export ZOPE_FORM_MEMORY_LIMIT=4MB +[ -z ${ZOPE_FORM_DISK_LIMIT+x} ] && export ZOPE_FORM_DISK_LIMIT=4MB +[ -z ${ZOPE_FORM_MEMFILE_LIMIT+x} ] && export ZOPE_FORM_MEMFILE_LIMIT=4MB # ZODB ENV Vars diff --git a/skeleton/etc/zope.conf b/skeleton/etc/zope.conf index 5144052..3c3106a 100644 --- a/skeleton/etc/zope.conf +++ b/skeleton/etc/zope.conf @@ -12,6 +12,8 @@ default-zpublisher-encoding $(DEFAULT_ZPUBLISHER_ENCODING) form-memory-limit $(ZOPE_FORM_MEMORY_LIMIT) + form-disk-limit $(ZOPE_FORM_DISK_LIMIT) + form-memfile-limit $(ZOPE_FORM_MEMFILE_LIMIT) From 5f84a075a1efc8ad08be5ff5bf6d066c02cc599b Mon Sep 17 00:00:00 2001 From: Mikel Larreategi Date: Tue, 12 Nov 2024 07:57:01 +0100 Subject: [PATCH 2/2] Update skeleton/docker-entrypoint.sh Co-authored-by: David Glick --- skeleton/docker-entrypoint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/skeleton/docker-entrypoint.sh b/skeleton/docker-entrypoint.sh index 1005488..9f49658 100755 --- a/skeleton/docker-entrypoint.sh +++ b/skeleton/docker-entrypoint.sh @@ -28,8 +28,8 @@ fi [ -z ${COMPILE_MO_FILES+x} ] && export COMPILE_MO_FILES=true [ -z ${DEBUG_MODE+x} ] && export DEBUG_MODE=off [ -z ${ZOPE_FORM_MEMORY_LIMIT+x} ] && export ZOPE_FORM_MEMORY_LIMIT=4MB -[ -z ${ZOPE_FORM_DISK_LIMIT+x} ] && export ZOPE_FORM_DISK_LIMIT=4MB -[ -z ${ZOPE_FORM_MEMFILE_LIMIT+x} ] && export ZOPE_FORM_MEMFILE_LIMIT=4MB +[ -z ${ZOPE_FORM_DISK_LIMIT+x} ] && export ZOPE_FORM_DISK_LIMIT=1GB +[ -z ${ZOPE_FORM_MEMFILE_LIMIT+x} ] && export ZOPE_FORM_MEMFILE_LIMIT=4KB # ZODB ENV Vars