Commit fda026ef authored by Cédric Le Ninivin's avatar Cédric Le Ninivin

html5as: Default path available as a parameter

parent 471bcbee
...@@ -66,7 +66,7 @@ path_access_log = $${basedirectory:log}/nginx.access.log ...@@ -66,7 +66,7 @@ path_access_log = $${basedirectory:log}/nginx.access.log
path_error_log = $${basedirectory:log}/nginx.error.log path_error_log = $${basedirectory:log}/nginx.error.log
path_tmp = $${buildout:directory}/tmp path_tmp = $${buildout:directory}/tmp
# Docroot # Docroot
docroot = $${basedirectory:data} docroot = $${basedirectory:data}/$${slap-parameter:default-path}
default_index = $${basedirectory:data}/index.html default_index = $${basedirectory:data}/index.html
# Config files # Config files
path_nginx_conf = $${rootdirectory:etc}/nginx.conf path_nginx_conf = $${rootdirectory:etc}/nginx.conf
...@@ -114,3 +114,7 @@ context = ...@@ -114,3 +114,7 @@ context =
[publish-connection-information] [publish-connection-information]
recipe = slapos.cookbook:publish recipe = slapos.cookbook:publish
server_url = http://[$${html5as:ip}]:$${html5as:port} server_url = http://[$${html5as:ip}]:$${html5as:port}
# Define default values of parameters here
[slap-parameter]
default-path =
...@@ -31,7 +31,7 @@ mode = 0644 ...@@ -31,7 +31,7 @@ mode = 0644
recipe = slapos.recipe.template recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance_html5as.cfg url = ${:_profile_base_location_}/instance_html5as.cfg
output = ${buildout:directory}/template_html5as.cfg output = ${buildout:directory}/template_html5as.cfg
md5sum = 41cb6178f760238ca276854873ef9364 md5sum = 91d6e7fc3465d0eba1d7dfe9ebb03206
mode = 0644 mode = 0644
[template_nginx_conf] [template_nginx_conf]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment