Skip to content

Commit

Permalink
add more configurable options via env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
erral committed Nov 11, 2024
1 parent bd275d2 commit ad640c1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions skeleton/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions skeleton/etc/zope.conf
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ default-zpublisher-encoding $(DEFAULT_ZPUBLISHER_ENCODING)

<dos_protection>
form-memory-limit $(ZOPE_FORM_MEMORY_LIMIT)
form-disk-limit $(ZOPE_FORM_DISK_LIMIT)
form-memfile-limit $(ZOPE_FORM_MEMFILE_LIMIT)
</dos_protection>

<zodb_db main>
Expand Down

0 comments on commit ad640c1

Please sign in to comment.