## 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

# Encoding
rest-input-encoding utf-8
rest-output-encoding utf-8
default-zpublisher-encoding utf-8

# Disable ownership checking to execute codes generated by alarm
skip-ownership-checking on

# 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>
  level info
  <logfile>
    dateformat
    path %(event_log)s
  </logfile>
</eventlog>
<logger access>
  level WARN
  <logfile>
    dateformat
    path %(z2_log)s
  </logfile>
</logger>

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

# ZODB configuration
%(zodb_configuration)s

<zoperunner>
    program $INSTANCE/bin/runzope
</zoperunner>

# DeadlockDebugger configuration
<product-config DeadlockDebugger>
  dump_url %(dump_url)s
  secret %(secret)s
</product-config>
