This repository has been archived by the owner on Nov 9, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
/
production.cfg
117 lines (98 loc) · 2.29 KB
/
production.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
[buildout]
extends = base.cfg
parts = zeo
instance1
instance2
instance3
instance4
debug-instance
haproxy-build
haproxy-conf
varnish-build
varnish
supervisor
supervisor-conf
supervisor-crontab
packcronjob
backup
backupcronjob
logrotate-conf
logrotate
[zeo]
recipe = plone.recipe.zeoserver
zeo-address = 8000
eggs = ${buildout:eggs}
[instance1]
recipe = plone.recipe.zope2instance
user = admin:admin
zeo-client = True
zeo-address = ${zeo:zeo-address}
shared-blob = True
http-address = 8081
eggs = Zope2
Plone
${buildout:eggs}
[instance2]
<= instance1
http-address = 8082
[instance3]
<= instance1
http-address = 8083
[instance4]
<= instance1
http-address = 8084
[debug-instance]
<= instance1
zserver-threads = 1
http-address = 8080
[haproxy-build]
recipe = plone.recipe.haproxy
target = linux26
pcre = 1
[haproxy-conf]
recipe = collective.recipe.template
input = ${buildout:directory}/templates/haproxy.conf
output = ${buildout:directory}/etc/haproxy.conf
maxconn = 12000
ulimit-n = 65536
bind = 0.0.0.0:8180
[varnish-build]
recipe = zc.recipe.cmmi
url = ${varnish:download-url}
[varnish]
recipe = plone.recipe.varnish
daemon = ${buildout:parts-directory}/varnish-build/sbin/varnishd
bind = 127.0.0.1:8280
backends = 127.0.0.1:8180
cache-size = 128M
mode = foreground
[supervisor]
recipe = zc.recipe.egg
eggs = supervisor
[supervisor-conf]
recipe = collective.recipe.template
input = ${buildout:directory}/templates/supervisord.conf
output = ${buildout:directory}/etc/supervisord.conf
[supervisor-crontab]
recipe = z3c.recipe.usercrontab
times = @reboot
command = ${buildout:bin-directory}/supervisord -c ${supervisor-conf:output}
[packcronjob]
recipe = z3c.recipe.usercrontab
times = 0 1 * * 7
command = ${buildout:directory}/bin/zeopack
[backup]
recipe = collective.recipe.backup
[backupcronjob]
recipe = z3c.recipe.usercrontab
times = 0 2 * * *
command = ${buildout:directory}/bin/backup
[logrotate-conf]
recipe = collective.recipe.template
input = ${buildout:directory}/templates/logrotate.conf
output = ${buildout:directory}/etc/logrotate.conf
[logrotate]
recipe = z3c.recipe.usercrontab
times = 0 3 * * *
status = ${buildout:directory}/var/logrotate.status
command = /usr/sbin/logrotate --state ${logrotate:status} ${logrotate-conf:output}