-
Notifications
You must be signed in to change notification settings - Fork 0
/
buildout-base.cfg
92 lines (83 loc) · 2.85 KB
/
buildout-base.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
# This is a base buildout config that other developer-specific configs
# should 'extend' by specifying which 'parts' they need.
[buildout]
parts =
# diazo
# theme-xsl
# nginx
# nginx-conf
# nginx-dev-conf
# lxml
[diazo]
recipe = zc.recipe.egg
eggs =
diazo
PasteScript
[lxml]
# We shouldn't need this any longer, but Linux needs them apt-get installed
recipe = z3c.recipe.staticlxml
egg = lxml
libxml2-url = ftp://xmlsoft.org/libxml2/libxml2-2.9.3.tar.gz
libxslt-url = ftp://xmlsoft.org/libxml2/libxslt-1.1.28.tar.gz
[theme-xsl]
recipe = plone.recipe.command
location = ${buildout:directory}/etc/theme.xsl
command = mkdir -p ${buildout:directory}/etc && ${buildout:directory}/bin/diazocompiler -n -o ${buildout:directory}/etc/theme.xsl -r rules.xml
[nginx-conf]
recipe = collective.recipe.template
workers = 1
conns = 1024
port = 8888
tttdiazo-cache-port = 80
tttdiazo-ssl-port = 443
themexsl = ${buildout:directory}/etc/theme.xsl
backend = http://www.v-studios.com
backend_host = www.v-studios.com
timeout = 62
needs_redir = {needs_redir}
input = ${buildout:directory}/templates/nginx.conf.in
output = ${buildout:directory}/etc/nginx.conf
[nginx-dev-conf]
recipe = collective.recipe.template
workers = 1
conns = 1024
port = 8888
tttdiazo-cache-port = 5000
tttdiazo-ssl-port = 8443
themexsl = ${buildout:directory}/etc/theme.xsl
backend = http://www.v-studios.com
backend_host = www.v-studios.com
timeout = 62
needs_redir = {needs_redir}
input = ${buildout:directory}/templates/nginx.conf.in
output = ${buildout:directory}/etc/nginx-dev.conf
[nginx]
# Using a patch to nginx circa 1.6 and 1.7 from:
# https://raw.githubusercontent.com/jcu-eresearch/nginx-custom-build/master/nginx-xslt-html-parser.patch
# nginx-1.9.9 doesn't have flags --with-libxml2 or --with-libxslt
# so it seems we don't have to build lxml at all!
recipe = zc.recipe.cmmi
url = http://nginx.org/download/nginx-1.9.9.tar.gz
patch = ${buildout:directory}/templates/nginx-xslt-html-parser.patch
patch_options = src/http/modules/ngx_http_xslt_filter_module.c
extra_options =
--conf-path=${buildout:directory}/etc/nginx.conf
--sbin-path=${buildout:directory}/bin
--error-log-path=${buildout:directory}/var/log/nginx-error.log
--http-log-path=${buildout:directory}/var/log/nginx-access.log
--pid-path=${buildout:directory}/var/nginx.pid
--lock-path=${buildout:directory}/var/nginx.lock
--with-http_stub_status_module
--with-http_xslt_module
# --with-debug
# This won't work for Docker (it deploys to /app) or local fullstack. Not worth
# worrying about since we're not running it long enough to rotate except on prod.
[nginx-logrotate]
recipe = collective.recipe.template
rotate = 14
pidpath = /var/app/var/nginx.pid
binpath = /var/app/bin/nginx
logdir = /var/app/var/log
input = ${buildout:directory}/templates/nginx-logrotate.in
output = /etc/logrotate.d/nginx
mode = 644