Fetch new vifib and put it in docroot of nginx
[slapos.git] / software / html5as / instance_html5as.cfg
1 [buildout]
2 parts =
3     html5as
4     publish-connection-information
5
6 # partition tree
7 # /
8 # |- etc/
9 # |    |- nginx.conf
10 # |    |- run/
11 # |         |- nginx (binary)
12 # |- var/
13 # |    |- run/
14 # |    |    |- nginx.pid
15 # |    |- log/
16 # |    |    |- nginx.log
17 # |    |    |- nginx.access.log
18 # |- srv/
19 # |    |- html5as/ (doc root)
20 # |    |        |- index.html
21 # |    |- backup/
22 eggs-directory = ${buildout:eggs-directory}
23 develop-eggs-directory = ${buildout:develop-eggs-directory}
24 offline = true
25
26 [rootdirectory]
27 recipe = slapos.cookbook:mkdirectory
28 etc = $${buildout:directory}/etc
29 var = $${buildout:directory}/var
30 srv = $${buildout:directory}/srv
31
32 [basedirectory]
33 recipe = slapos.cookbook:mkdirectory
34 services = $${rootdirectory:etc}/run
35 log = $${rootdirectory:var}/log
36 run = $${rootdirectory:var}/run
37 backup = $${rootdirectory:srv}/backup
38 data = $${rootdirectory:srv}/html5as
39
40 [html5as]
41 recipe = slapos.cookbook:html5as
42 nb_workers = 2
43 path_pid = $${basedirectory:run}/nginx.pid
44 path_log = $${basedirectory:log}/nginx.log
45 path_access_log = $${basedirectory:log}/nginx.access.log
46 path_error_log = $${basedirectory:log}/nginx.error.log
47 root = $${basedirectory:data}
48 default_index = $${basedirectory:data}/index.html
49 ip = $${slap-network-information:global-ipv6}
50 port = 8080
51 path_shell = ${dash:location}/bin/dash
52 nginx_path = ${nginx:location}/sbin/nginx
53 config_file = $${rootdirectory:etc}/nginx.conf
54 mime_path = $${rootdirectory:etc}/mime.types
55 path = $${basedirectory:services}/nginx
56 tmp = $${buildout:directory}/tmp
57
58 [publish-connection-information]
59 recipe = slapos.cookbook:publish
60 server_url = http://[$${html5as:ip}]:$${html5as:port}