-
Notifications
You must be signed in to change notification settings - Fork 3
/
deployment.cfg
106 lines (85 loc) · 2.63 KB
/
deployment.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
[buildout]
extends = buildout.cfg releaseversions.cfg site.cfg
effective-user = ${site:effective-user}
parts +=
instance2
zeoserver
instanceworker
varnish-config
haproxy-config
find-links +=
${buildout:directory}/egg_repo
auto-checkout =
sources = nosources
[versions]
docutils = 0.9.1
Products.PloneHotfix20121106 = 1.2
[nosources]
[instance]
http-address = ${site:instance-host}:${site:instance-port}
zeo-address = ${zeoserver:zeo-address}
zeo-client = on
zeo-client-cache-size = 512MB
shared-blob = on
zodb-cache-size = ${site:zodb-cache-size}
zcml-additional =
<include package="plone.app.async" file="multi_db_instance.zcml" />
environment-vars +=
ZC_ASYNC_UUID ${buildout:directory}/var/${:_buildout_section_name_}-uuid.txt
WKHTMLTOPDF_HTTPAUTH ${site:wkhtmltopdf-auth}
TZ Europe/Zurich
zope-conf-additional +=
<zodb_db async>
cache-size ${:zodb-cache-size}
<zeoclient>
server ${zeoserver:zeo-address}
storage 2
name asyncstorage
blob-dir ${zeoserver:blob-storage}
shared-blob-dir on
var ${buildout:directory}/var/${:_buildout_section_name_}
cache-size ${:zeo-client-cache-size}
</zeoclient>
mount-point /zasync
</zodb_db>
zeo-client = True
zeo-address = ${zeoserver:zeo-address}
blob-storage = ${zeoserver:blob-storage}
shared-blob = on
[instance2]
<= instance
http-address = ${site:instance2-host}:${site:instance2-port}
[zeoserver]
recipe = plone.recipe.zeoserver
zeo-address = ${site:zeoserver-address}
zeo-log = ${buildout:log-directory}/${:_buildout_section_name_}.log
file-storage = ${buildout:data-directory}/filestorage/Data.fs
blob-storage = ${buildout:data-directory}/blobstorage/
effective-user = ${site:effective-user}
pack-days = 30
zeo-conf-additional =
<filestorage 2>
path ${buildout:directory}/var/filestorage/Async.fs
</filestorage>
[varnish-config]
recipe = collective.recipe.template
input = templates/varnish.vcl.in
output = ${buildout:directory}/etc/varnish.vcl
# misc template variables
backend-host = ${site:haproxy-host}
backend-port = ${site:haproxy-port}
[haproxy-config]
recipe = collective.recipe.template
input = templates/haproxy.cfg.in
output = ${buildout:directory}/etc/haproxy.cfg
user = ${site:haproxy-user}
group = ${site:haproxy-group}
address = ${site:haproxy-host}:${site:haproxy-port}
maxconn = 1000
[instanceworker]
<= instance
http-address = ${site:instanceworker-host}:${site:instanceworker-port}
zodb-cache-size = 3000
zeo-client-cache-size = 512MB
zcml-additional =
<include package="plone.app.async" file="multi_db_worker.zcml" />