Merge branch 'master' into erp5-component
[slapos.git] / stack / erp5 / zope.conf.in
1 # Note: Environment is setup in running wrapper script, as zope.conf is read
2 # too late for some components.
3 %define INSTANCE {{ instance }}
4 instancehome $INSTANCE
5 zserver-threads {{ parameter_dict['thread-amount'] }}
6
7 lock-filename {{ parameter_dict['lock-file'] }}
8 pid-filename {{ parameter_dict['pid-file'] }}
9
10 default-zpublisher-encoding utf-8
11 rest-input-encoding utf-8
12 rest-output-encoding utf-8
13
14 # XXX: isn't this entry implicit ?
15 products {{ instance_products }}
16
17 <http-server>
18   address {{ parameter_dict['ip'] }}:{{ parameter_dict['port'] }}
19 </http-server>
20
21 {# TODO: enable
22 {% if webdav_port -%}
23 <webdav-source-server>
24   address {{ parameter_dict['ip'] }}:{{ parameter_dict['webdav_port'] }}
25   force-connection-close off
26 </webdav-source-server>
27
28 {% endif -%}
29 -#}
30 <zoperunner>
31     program $INSTANCE/bin/runzope
32 </zoperunner>
33
34 <product-config DeadlockDebugger>
35   dump_url /manage_debug_threads
36   secret {{ deadlock_debugger_password }}
37 </product-config>
38
39 {% if tidstorage_ip -%}
40 <product-config TIDStorage>
41   backend-ip {{ tidstorage_ip }}
42   backend-port {{ tidstorage_port }}
43 </product-config>
44
45 {% endif -%}
46 {% set timerserver_interval = parameter_dict.get('timerserver-interval', '0') | int -%}
47 {% if timerserver_interval -%}
48 %import timerserver
49 <timer-server>
50   interval {{ timerserver_interval }}
51 </timer-server>
52
53 {% endif -%}
54 {% if promise_path -%}
55 <product-config /{{ parameter_dict['site-id'] }}>
56   promise_path {{ promise_path }}
57 </product-config>
58
59 {% endif -%}
60 <eventlog>
61   level info
62   <logfile>
63     dateformat
64     path {{ parameter_dict['event-log'] }}
65   </logfile>
66 </eventlog>
67
68 <logger access>
69   level WARN
70   <logfile>
71     dateformat
72     path {{ parameter_dict['z2-log'] }}
73   </logfile>
74 </logger>
75
76 <zodb_db temporary>
77   <temporarystorage>
78     name temporary storage for sessioning
79   </temporarystorage>
80   mount-point /temp_folder
81   container-class Products.TemporaryFolder.TemporaryContainer
82 </zodb_db>
83
84 {% for db_name, mount_point, cache_size, storage_type, storage_dict in parameter_dict['zodb-list'] -%}
85 <zodb_db {{ db_name }}>
86 {%-   if cache_size %}
87   cache-size {{ cache_size }}
88 {%-   endif %}
89   mount-point {{ mount_point }}
90   <{{ storage_type }}>
91 {%-   for key, value in storage_dict.iteritems() %}
92     {{ key }} {{ value }}
93 {%-   endfor %}
94   </{{ storage_type }}>
95 </zodb_db>
96
97 {% endfor -%}