-
Notifications
You must be signed in to change notification settings - Fork 0
/
production.cfg
120 lines (99 loc) · 2.42 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
118
119
120
[buildout]
extends =
cfgs/base.cfg
prod-parts =
env
grp
zeo
instance1
instance2
instance-debug
haproxy
haproxy-conf
varnish-build
varnish-config
varnish
supervisor
supervisor-conf
logrotate
cron-parts =
backup-cronjob
zeopack-crontab
supervisor-crontab
logrotate-crontab
parts =
${buildout:base-parts}
${buildout:prod-parts}
${buildout:cron-parts}
[env]
recipe = gocept.recipe.env
[grp]
recipe = collective.recipe.grp
[zeo]
recipe = plone.recipe.zeoserver
zeo-address = 127.0.0.1:8001
blob-storage = ${buildout:directory}/var/blobstorage
pack-days = 7
pack-keep-old = false
pack-user = zeointranett
[backup-cronjob]
recipe = z3c.recipe.usercrontab
times = 37 2 * * *
command = ${buildout:directory}/bin/backup --quiet
[zeopack-crontab]
recipe = z3c.recipe.usercrontab
times = 47 1 * * *
command = ${buildout:bin-directory}/zeopack
[instance-base]
user = admin:SuPerSecRetPassWord
zeo-client = True
zeo-address = ${zeo:zeo-address}
blob-storage = ${zeo:blob-storage}
shared-blob = on
zserver-threads = 1
http-fast-listen = off
[instance1]
<= instance-base
http-port = 8081
http-address = 127.0.0.1:8081
[instance2]
<= instance-base
http-port = 8082
http-address = 127.0.0.1:8082
[instance-debug]
<= instance-base
http-port = 8090
http-address = 127.0.0.1:8090
verbose-security = on
[zopepy]
eggs = ${instance1:eggs}
[haproxy]
recipe = plone.recipe.haproxy
url = http://dist.jarn.com/public/haproxy-1.4.15.zip
[haproxy-conf]
recipe = collective.recipe.template
input = ${buildout:directory}/templates/haproxy.cfg
output = ${buildout:directory}/etc/haproxy.cfg
user = ${env:USER}
group = ${grp:GROUP}
frontend-host = 127.0.0.1
frontend-port = 8010
[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 ${buildout:directory}/etc/supervisord.conf
[logrotate]
recipe = collective.recipe.template
input = ${buildout:directory}/templates/logrotate.conf
output = ${buildout:directory}/etc/logrotate.conf
[logrotate-crontab]
recipe = z3c.recipe.usercrontab
times = 57 23 * * *
command = /usr/sbin/logrotate -s ${buildout:directory}/var/logrotate.status ${buildout:directory}/etc/logrotate.conf