forked from collective/demo.plone.de
-
Notifications
You must be signed in to change notification settings - Fork 0
/
local_production.cfg
126 lines (111 loc) · 3.14 KB
/
local_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
[buildout]
extends =
https://raw.githubusercontent.com/starzel/buildout/5.0.2/linkto/base.cfg
# If you want you can have you eggs picked
#allow-picked-versions = true
parts +=
# Choose one!
${buildout:zeo-ha-parts}
# ${buildout:zeo-single-parts}
# Modify templates/supervisor.conf as needed for production!
# ${buildout:nginx-parts}
# ${buildout:varnish-parts}
${buildout:supervisor-parts}
${buildout:cron-parts}
# backup
# logrotate
precompiler
plonesite
# Adjust to directory-setup of server. The default matches gocept-servers.
vardir = ${buildout:directory}/var
backupdir = ${buildout:directory}/backup
logdir = ${buildout:vardir}/log
# Optional. Needed for each client.
[zeoclient1]
# Longrequest logging
#environment-vars =
# longrequestlogger_file ${buildout:logdir}/${:_buildout_section_name_}_longrequest.log
# longrequestlogger_timeout 4
# longrequestlogger_interval 2
# Sentry logging
event-log-custom =
%import raven.contrib.zope
<logfile>
path ${buildout:logdir}/${:_buildout_section_name_}.log
level INFO
</logfile>
<sentry>
dsn https://f4b9bf8597e144c792cd5aeb725d31bf:41de279d9498415eb891b62cd9d1d8cd@sentry.starzel.de/22
level ERROR
string_max_length 100000
list_max_length 500
</sentry>
# Only add eggs here that you only want in this environment
eggs +=
# Longrequest logging
# Products.LongRequestLogger[standalone]
# Sentry logging
raven
[zeoclient2]
# Sentry logging
event-log-custom =
%import raven.contrib.zope
<logfile>
path ${buildout:logdir}/${:_buildout_section_name_}.log
level INFO
</logfile>
<sentry>
dsn https://f4b9bf8597e144c792cd5aeb725d31bf:41de279d9498415eb891b62cd9d1d8cd@sentry.starzel.de/22
level ERROR
string_max_length 100000
list_max_length 500
</sentry>
eggs +=
# Sentry logging
raven
[plonesite]
recipe = collective.recipe.plonesite
site-id = Plone
instance = zeoclient1
zeoserver = zeoserver
profiles-initial = Products.CMFPlone:dependencies
profiles =
plonetheme.barceloneta:default
plone.app.contenttypes:plone-content
plonedemo.site:default
upgrade-portal = False
upgrade-all-profiles = False
site-replace = True
[ports]
# Adjust the ports (e.g. if you run multiple sites without modifying /etc/hosts)
# Edit /etc/hosts so you can use "localip = ${buildout:site}" to run all sites on the same port.
varnish = 8082
haproxy = 8080
zeoclient1 = 8081
zeoclient2 = 8083
zeoclient_debug = 8084
zeoserver = 8100
instance = 8080
[bindips]
instance = 0.0.0.0
zeoserver = 127.0.0.1
varnish = 127.0.0.1
haproxy = 127.0.0.1
zeoclient1 = 127.0.0.1
zeoclient2 = 127.0.0.1
zeoclient_debug = 127.0.0.1
nginx = # Real IP
[test-ports]
zeoclient1 = 9092
[test-bindips]
zeoclient1 = 127.0.0.1
#[nginx]
#static_root = # Somepath
[monitoring_alerting]
# Max Ram 200 MB is not alot this MUST be adapted to usage patterns.
# A site Plone4 with very few users needs >200MB
maxram = 500
notification_mail = team@starzel.de
subject_ix = ${buildout:site}
zeoclient1_check_url = http://${bindips:zeoclient1}:${ports:zeoclient1}
zeoclient2_check_url = http://${bindips:zeoclient2}:${ports:zeoclient2}