forked from plone/diazo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnginx.cfg
67 lines (61 loc) · 2.35 KB
/
nginx.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
[buildout]
extends = lxml.cfg
parts +=
nginx
nginx.conf
example-theme
# ploneorg-theme
rebuild-themes
[nginx]
recipe = zc.recipe.cmmi
url = https://bitbucket.org/lrowe/nginx-xslt-html-parser/get/1a21700079c9.tar.gz
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-libxml2=${buildout:directory}/parts/lxml/libxml2
# --with-libxslt=${buildout:directory}/parts/lxml/libxslt
# --with-debug --with-cc-opt="-O0" # helps debugging with gdb
[nginx.conf]
recipe = collective.recipe.template
port = 8000
root = ${buildout:directory}/examples
filter.xsl = ${buildout:directory}/lib/diazo/filter.xsl
example.xsl = ${buildout:directory}/etc/example.xsl
ploneorg.xsl = ${buildout:directory}/etc/ploneorg.xsl
input = ${buildout:directory}/templates/nginx.conf.in
output = ${buildout:directory}/etc/nginx.conf
[example-theme]
recipe = plone.recipe.command
includemode = ssi
command =
${buildout:directory}/bin/diazocompiler \
--includemode=${:includemode} --output=${nginx.conf:example.xsl} \
${nginx.conf:root}/rules.xml ${nginx.conf:root}/theme.html
update-command = ${:command}
#[ploneorg-theme]
#recipe = plone.recipe.command
#includemode = ssi
#command =
# ${buildout:directory}/bin/diazocompiler \
# --includemode=${:includemode} --output=${nginx.conf:ploneorg.xsl} \
# --extra=${nginx.conf:root}/ploneorg/default-extra.xsl \
# ${nginx.conf:root}/ploneorg/default.xml ${nginx.conf:root}/ploneorg/plone.html
#update-command = ${:command}
[rebuild-themes]
recipe = collective.recipe.template
library-path = ${buildout:directory}/parts/lxml/libxml2/lib:${buildout:directory}/parts/lxml/libxslt/lib
inline =
#!/bin/sh
export LD_LIBRARY_PATH=${:library-path}
export DYLD_LIBRARY_PATH=${:library-path}
${example-theme:command} && echo example theme rebuilt
# ${ploneorg-theme:command} && echo ploneorg theme rebuilt
${buildout:directory}/bin/nginx -s reload && echo nginx reloaded.
output = ${buildout:directory}/bin/rebuild-themes
mode = 755