umask is deprecated instead use mode
[slapos.git] / software / html5as / instance_html5as.cfg
1 [buildout]
2 parts =
3     nginx_conf
4     html5as_bin
5     website_download
6     publish-connection-information
7
8 eggs-directory = ${buildout:eggs-directory}
9 develop-eggs-directory = ${buildout:develop-eggs-directory}
10
11 # partition tree
12 # /
13 # |- etc/
14 # |    |- nginx.conf
15 # |    |- run/
16 # |         |- html5as (binary)
17 # |- var/
18 # |    |- run/
19 # |    |    |- nginx.pid
20 # |    |- log/
21 # |    |    |- nginx.log
22 # |    |    |- nginx.access.log
23 # |- srv/
24 # |    |- html5as/ (doc root)
25 # |    |        |- index.html
26 # |    |- backup/
27
28 [rootdirectory]
29 recipe = slapos.cookbook:mkdirectory
30 etc = $${buildout:directory}/etc
31 var = $${buildout:directory}/var
32 srv = $${buildout:directory}/srv
33
34 [basedirectory]
35 recipe = slapos.cookbook:mkdirectory
36 services = $${rootdirectory:etc}/run
37 log = $${rootdirectory:var}/log
38 run = $${rootdirectory:var}/run
39 backup = $${rootdirectory:srv}/backup
40 data = $${rootdirectory:srv}/html5as
41
42 [html5as]
43 # Options
44 nb_workers = 2
45
46 # Network
47 ip = $${slap-network-information:global-ipv6}
48 port = 8080
49
50 # Paths
51 # Log
52 path_pid = $${basedirectory:run}/nginx.pid
53 path_log = $${basedirectory:log}/nginx.log
54 path_access_log = $${basedirectory:log}/nginx.access.log
55 path_error_log = $${basedirectory:log}/nginx.error.log
56 path_tmp = $${buildout:directory}/tmp
57 # Docroot
58 docroot = $${basedirectory:data}
59 default_index = $${basedirectory:data}/index.html
60 # Config files
61 path_nginx_conf = $${rootdirectory:etc}/nginx.conf
62 # Executables
63 bin_nginx = ${nginx:location}/sbin/nginx
64 bin_html5as = $${basedirectory:services}/html5as
65
66 # Utils
67 path_shell = ${dash:location}/bin/dash
68
69 [website_download]
70 recipe = hexagonit.recipe.download
71 # Website tarball
72 url = $${slap-parameter:download_url}
73 destination = $${html5as:docroot}
74
75 [nginx_conf]
76 recipe = slapos.recipe.template:jinja2
77 template = ${:_profile_base_location_}/templates/nginx_conf.in
78 rendered = $${html5as:path_nginx_conf}
79 md5sum = 6338abecda61f4414392b6f4c1d09e8a
80 context = section param_html5as html5as
81
82 [html5as_bin]
83 recipe = slapos.recipe.template:jinja2
84 template = ${:_profile_base_location_}/templates/html5as_bin.in
85 rendered = $${html5as:bin_html5as}
86 md5sum = 0ddb3dfbd963819a1666ca47aa37bbc5
87 context = section param_html5as html5as
88 mode = 700
89
90 [publish-connection-information]
91 recipe = slapos.cookbook:publish
92 server_url = http://[$${html5as:ip}]:$${html5as:port}