forked from kitconcept/buildout
-
Notifications
You must be signed in to change notification settings - Fork 0
/
live.cfg
173 lines (154 loc) · 4.42 KB
/
live.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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
[buildout]
extends = buildout.cfg
parts =
supervisor
zeo
instance1
instance2
instance3
instance4
instancedebug
backup
varnish-build
varnish-config
varnish
varnish-backends
varnishadm
eggs =
extensions =
auto-checkout =
var-directory = ${buildout:directory}/var
[ports]
zeo = 8001
instance1 = 9001
instance2 = 9002
instance3 = 9003
instance4 = 9004
instancedebug = 9099
[settings]
varnish-host = 0.0.0.0
varnish-port = 10001
varnish-telnet-port = 10101
varnish-cache-size = 256MB
varnish-mode = foreground
varnish-cache-type = malloc
[instancecommon]
recipe = plone.recipe.zope2instance
user = admin:admin
var = ${buildout:var-directory}
debug-mode = off
verbose-security = off
ip-address = 127.0.0.1
zodb-cache-size = 50000
zeo-client-cache-size = 250MB
zserver-threads = 2
eggs =
Plone
${buildout:eggs}
zcml = dpg.core
zeo-client = true
zeo-address = ${zeo:zeo-address}
zeo-client-client = ${:_buildout_section_name_}
zeo-client-drop-cache-rather-verify = false
event-log-level = WARN
event-log-max-size = 50MB
event-log-old-files = 4
z2-log-level = WARN
access-log-max-size = 50MB
access-log-old-files = 4
shared-blob = on
http-force-connection-close = true
http-fast-listen = off
environment-vars =
zope_i18n_compile_mo_files true
zope-conf-additional =
trusted-proxy 127.0.0.1
[instance1]
<=instancecommon
http-address = ${ports:instance1}
zeo-client-client = ${:_buildout_section_name_}
[instance2]
<=instancecommon
http-address = ${ports:instance2}
zeo-client-client = ${:_buildout_section_name_}
[instance3]
<=instancecommon
http-address = ${ports:instance3}
zeo-client-client = ${:_buildout_section_name_}
[instance4]
<=instancecommon
http-address = ${ports:instance4}
zeo-client-client = ${:_buildout_section_name_}
[instancedebug]
<=instancecommon
http-address = ${ports:instancedebug}
zeo-client-client = ${:_buildout_section_name_}
debug-mode = on
verbose-security = on
event-log-level = DEBUG
z2-log-level = DEBUG
[zeo]
recipe = plone.recipe.zeoserver
zeo-address = 127.0.0.1:${ports:zeo}
var = ${buildout:var-directory}
pack-days = 7
pack-keep-old = false
# monitor-address = 127.0.0.1:10101
[supervisor]
recipe = collective.recipe.supervisor
http-socket = unix
file = ${buildout:directory}/var/supervisor.sock
logfile-maxbytes = 50MB
logfile-backups = 4
loglevel = WARN
#plugins = superlance
programs =
10 zeo ${zeo:location}/bin/runzeo ${zeo:location}
40 instance1 ${buildout:bin-directory}/instance1 [console] ${instance1:location}
40 instance2 ${buildout:bin-directory}/instance2 [console] ${instance2:location}
50 instance3 ${buildout:bin-directory}/instance3 [console] ${instance3:location}
60 instance4 ${buildout:bin-directory}/instance4 [console] ${instance4:location}
70 cache ${buildout:directory}/bin/varnish [-S ${buildout:directory}/etc/varnish/.varnishsecret] true
# eventlisteners =
# Memmon TICK_60 ${buildout:bin-directory}/memmon [-p instance3=250MB -m zope]
# HttpOk TICK_60 ${buildout:bin-directory}/httpok [-p instance3 -t 20 http://localhost:11083/]
[backup]
recipe = collective.recipe.backup
location = ${buildout:var-directory}/backups
blobbackuplocation = ${buildout:var-directory}/blobstoragebackups
snapshotlocation = ${buildout:var-directory}/snapshotbackups
blobsnapshotlocation = ${buildout:var-directory}/blobstoragesnapshots
keep = 4
keep_blob_days = 28
gzip = true
enable_zipbackup = true
[varnish-build]
recipe = zc.recipe.cmmi
url = http://varnish-cache.org/_downloads/varnish-4.1.2.tgz
[varnish]
recipe = plone.recipe.varnish
daemon = ${buildout:parts-directory}/varnish-build/sbin/varnishd
bind = ${settings:varnish-host}:${settings:varnish-port}
config = ${buildout:directory}/etc/varnish/varnish.vcl
cache-size = ${settings:varnish-cache-size}
mode = ${settings:varnish-mode}
cache-type = ${settings:varnish-cache-type}
telnet = ${settings:varnish-host}:${settings:varnish-telnet-port}
[varnish-config]
recipe = collective.recipe.template
input = ${buildout:directory}/templates/default.vcl
output = ${buildout:directory}/etc/varnish/varnish.vcl
[varnish-backends]
recipe = collective.recipe.template
input = inline:
#!/bin/sh
./parts/varnish-build/bin/varnishadm backend.list
output = ${buildout:directory}/bin/varnish-backends
mode = 755
[varnishadm]
recipe = collective.recipe.template
input = inline:
#!/bin/sh
./parts/varnish-build/bin/varnishadm -S ./etc/varnish/.varnishsecret
output = ${buildout:directory}/bin/varnishadm
mode = 755