## Zope 2 configuration file generated by SlapOS

# Some defines
%%define INSTANCE %(instance)s
instancehome $INSTANCE

# Used products
%(products)s

# Environment is setup in running wrapper script
# Reason: zope.conf is read too late for some componets

# No need to debug
debug-mode off

# One thread is safe enough
zserver-threads %(thread_amount)s

# File location
pid-filename %(pid-filename)s
lock-filename %(lock-filename)s

# Temporary storage database (for sessions)
<zodb_db temporary>
     <temporarystorage>
       name temporary storage for sessioning
     </temporarystorage>
     mount-point /temp_folder
     container-class Products.TemporaryFolder.TemporaryContainer
</zodb_db>

# Logging configuration
<eventlog>
  <logfile>
    dateformat
    path %(event_log)s
  </logfile>
</eventlog>
<logger access>
  <logfile>
    dateformat
    path %(z2_log)s
  </logfile>
</logger>

# Serving configuration
<http-server>
  address %(address)s
</http-server>

# ZODB configuration
%(zodb_configuration_string)s
<zoperunner>
    program $INSTANCE/bin/runzope
</zoperunner>