forked from intranett/intranett
-
Notifications
You must be signed in to change notification settings - Fork 0
/
production.cfg
135 lines (115 loc) · 3.11 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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
[buildout]
extends =
cfgs/base.cfg
prod-parts =
env
grp
zeo
instance1
instance2
atct_conf
instance-debug
haproxy
haproxy-conf
nginx-conf
logrotate
cron-parts =
ejabberd-cronjob
logrotate-crontab
cron-parts-zeo =
backup-cronjob
zeopack-crontab
parts =
${buildout:base-parts}
${buildout:prod-parts}
${buildout:varnish-parts}
${buildout:ejabberd-parts}
${buildout:cron-parts}
${buildout:cron-parts-zeo}
${buildout:supervisor-parts}
develop =
src/intranett.policy
src/intranett.theme
src/intranett.tour
[zeo]
recipe = plone.recipe.zeoserver
zeo-address = 127.0.0.1:8001
blob-storage = ${buildout:directory}/var/blobstorage
authentication-realm = intranett
authentication-database = ${buildout:directory}/etc/auth.db
pack-days = 7
pack-keep-old = false
pack-user = zeointranett
pack-password = FuGwjSm32eCaOX
[backup-cronjob]
recipe = z3c.recipe.usercrontab
times = 37 2 * * *
command = ${buildout:directory}/bin/backup --quiet
[ejabberd-cronjob]
recipe = z3c.recipe.usercrontab
times = 17 2 * * *
command = ${buildout:directory}/bin/ejabberd-backup
[zeopack-crontab]
recipe = z3c.recipe.usercrontab
times = 47 1 * * *
command = ${buildout:bin-directory}/zeopack
[instance-base]
zeo-client = True
zeo-address = ${zeo:zeo-address}
zeo-realm = ${zeo:authentication-realm}
blob-storage = ${zeo:blob-storage}
shared-blob = on
zeo-username = zeointranett
zeo-password = FuGwjSm32eCaOX
zserver-threads = 1
http-fast-listen = off
environment-vars +=
INTRANETT_PLONE_ID ${env:INTRANETT_PLONE_ID}
mailinglogger =
<mailing-logger>
level error
flood-level 10
smtp-server localhost
from logger@localhost
to hosting@localhost
subject [intranett error] [%(hostname)s] %(line)s
</mailing-logger>
[instance1]
<= instance-base
http-port = ${ports:instance1-http-port}
http-address = 127.0.0.1:${ports:instance1-http-port}
[instance2]
<= instance-base
http-port = ${ports:instance2-http-port}
http-address = 127.0.0.1:${ports:instance2-http-port}
[instance-debug]
<= instance-base
http-port = 8090
http-address = 127.0.0.1:8090
verbose-security = on
[atct_conf]
recipe = plone.recipe.command
target1 = ${instance1:location}/etc/atcontenttypes.conf
target2 = ${instance2:location}/etc/atcontenttypes.conf
command = ln -s ${buildout:directory}/etc/atcontenttypes.conf ${:target1} ; ln -s ${buildout:directory}/etc/atcontenttypes.conf ${:target2}
[zopepy]
eggs = ${instance1:eggs}
[haproxy]
recipe = plone.recipe.haproxy
url = http://dist.jarn.com/public/haproxy-1.4.18.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
[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