-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprod.cfg
141 lines (129 loc) · 3.97 KB
/
prod.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
[buildout]
extends =
base.cfg
port.cfg
allow-picked-versions = false
parts +=
facts
instance-debug
zeoserver
logrotate
instance2
instance3
instance4
instance-async
auto-checkout =
[facts]
recipe = isotoma.recipe.facts
[zeoserver]
recipe = plone.recipe.zeoserver
zeo-address = ${port:zeo}
#effective-user = ${instance1:effective-user}
pack-days = 7
pack-keep-old = false
monitor-address = ${port:zeo-monitor}
zeo-conf-additional =
%define FILESTORAGE ${buildout:directory}/var/filestorage
%define BLOBSTORAGE ${buildout:directory}/var/blobstorage
%include ${buildout:directory}/zeo_add.conf
[instance1]
recipe = plone.recipe.zope2instance
user = admin:${port:admin-password}
http-address = ${port:instance1-http}
zeo-client = true
zeo-address = ${zeoserver:zeo-address}
zodb-cache-size = 40000
zeo-client-cache-size = 300MB
shared-blob = on
zope-conf-additional +=
<product-config five.z2monitor>
bind 127.0.0.1:${port:instance1-monitor}
</product-config>
%define ZEOADDRESS ${zeoserver:zeo-address}
%define ZEOINSTANCE ${buildout:directory}/parts/zeoserver/var
%define BLOBSTORAGE ${buildout:directory}/var/blobstorage
%include ${buildout:directory}/zope_add_zeo.conf
eggs +=
archetypes.schematuning
collective.monitor
zcml +=
collective.monitor
event-log-custom =
<syslog>
address logs.imio.be:5544
facility local3
format %(asctime)s ${facts:hostname} zope[%(process)s]: ${port:cluster} ${:_buildout_section_name_} [%(levelname)s] %(name)s | %(message)s
dateformat %b %d %H:%M:%S
level info
</syslog>
<logfile>
path ${buildout:directory}/var/log/${:_buildout_section_name_}.log
level INFO
</logfile>
zcml-additional =
<include package="plone.app.async" file="single_db_instance.zcml" />
environment-vars =
ZC_ASYNC_UUID ${buildout:directory}/var/worker-uuid.txt
zope_i18n_compile_mo_files true
URBAN_EVENTS_CONFIGS default,liege
[instance2]
<= instance1
http-address = ${port:instance2-http}
zope-conf-additional =
<product-config five.z2monitor>
bind 127.0.0.1:${port:instance2-monitor}
</product-config>
%define ZEOADDRESS ${zeoserver:zeo-address}
%define ZEOINSTANCE ${buildout:directory}/parts/zeoserver/var
%define BLOBSTORAGE ${buildout:directory}/var/blobstorage
%include ${buildout:directory}/zope_add_zeo.conf
[instance3]
<= instance1
http-address = ${port:instance3-http}
zope-conf-additional =
<product-config five.z2monitor>
bind 127.0.0.1:${port:instance3-monitor}
</product-config>
%define ZEOADDRESS ${zeoserver:zeo-address}
%define ZEOINSTANCE ${buildout:directory}/parts/zeoserver/var
%define BLOBSTORAGE ${buildout:directory}/var/blobstorage
%include ${buildout:directory}/zope_add_zeo.conf
[instance4]
<= instance1
http-address = ${port:instance4-http}
zope-conf-additional =
<product-config five.z2monitor>
bind 127.0.0.1:${port:instance4-monitor}
</product-config>
%define ZEOADDRESS ${zeoserver:zeo-address}
%define ZEOINSTANCE ${buildout:directory}/parts/zeoserver/var
%define BLOBSTORAGE ${buildout:directory}/var/blobstorage
%include ${buildout:directory}/zope_add_zeo.conf
[instance-async]
<= instance1
http-address = ${port:instance-async-http}
zope-conf-additional =
<product-config five.z2monitor>
bind 127.0.0.1:${port:instance-async-monitor}
</product-config>
%define ZEOADDRESS ${zeoserver:zeo-address}
%define ZEOINSTANCE ${buildout:directory}/parts/zeoserver/var
%define BLOBSTORAGE ${buildout:directory}/var/blobstorage
%include ${buildout:directory}/zope_add_zeo.conf
zcml-additional =
<include package="plone.app.async" file="single_db_worker.zcml" />
[instance-debug]
<= instance1
http-address = ${port:instance-debug-http}
debug-mode = on
verbose-security = on
eggs =
${instance1:eggs}
${debug:eggs}
zcml =
${instance1:zcml}
${debug:zcml}
[logrotate]
recipe = collective.recipe.template
input = templates/logrotate.conf
output = ${buildout:directory}/logrotate.conf