Disable ownership checking to execute codes generated by alarm.
[slapos.git] / slapos / recipe / generic_zope / template / zope.conf.in
1 ## Zope 2 configuration file generated by SlapOS
2
3 # Some defines
4 %%define INSTANCE %(instance)s
5 instancehome $INSTANCE
6
7 # Used products
8 %(products)s
9
10 # Environment is setup in running wrapper script
11 # Reason: zope.conf is read too late for some componets
12
13 # No need to debug
14 debug-mode off
15
16 # One thread is safe enough
17 zserver-threads %(thread_amount)s
18
19 # File location
20 pid-filename %(pid-filename)s
21 lock-filename %(lock-filename)s
22
23 # Encoding
24 rest-input-encoding utf-8
25 rest-output-encoding utf-8
26 default-zpublisher-encoding utf-8
27
28 # Disable ownership checking to execute codes generated by alarm
29 skip-ownership-checking on
30
31 # Temporary storage database (for sessions)
32 <zodb_db temporary>
33      <temporarystorage>
34        name temporary storage for sessioning
35      </temporarystorage>
36      mount-point /temp_folder
37      container-class Products.TemporaryFolder.TemporaryContainer
38 </zodb_db>
39
40 # Logging configuration
41 <eventlog>
42   <logfile>
43     dateformat
44     path %(event_log)s
45   </logfile>
46 </eventlog>
47 <logger access>
48   <logfile>
49     dateformat
50     path %(z2_log)s
51   </logfile>
52 </logger>
53
54 # Serving configuration
55 <http-server>
56   address %(address)s
57 </http-server>
58
59 # ZODB configuration
60 <zodb_db root>
61     cache-size %(zodb_cache_size)d
62     <filestorage>
63       path %(zodb_root_path)s
64     </filestorage>
65     mount-point /
66 </zodb_db>
67 <zoperunner>
68     program $INSTANCE/bin/runzope
69 </zoperunner>
70
71 # DeadlockDebugger configuration
72 <product-config DeadlockDebugger>
73   dump_url %(dump_url)s
74   secret %(secret)s
75 </product-config>
76
77 # ERP5 Timer Service
78 %%import timerserver
79 <timer-server>
80   interval 5
81 </timer-server>