Commit fa2d77ff authored by Vivien Alger's avatar Vivien Alger

Switching frontend to mandatory request

parent 286af66f
...@@ -76,7 +76,7 @@ mode = 0644 ...@@ -76,7 +76,7 @@ mode = 0644
[instance-davstorage] [instance-davstorage]
recipe = slapos.recipe.template recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance-davstorage.cfg url = ${:_profile_base_location_}/instance-davstorage.cfg
md5sum = b60ef53023921a2e6d072e31b52f555e md5sum = 699ecf4678386667f58a3391bab7af0f
output = ${buildout:directory}/template-davstorage.cfg output = ${buildout:directory}/template-davstorage.cfg
mode = 0644 mode = 0644
......
...@@ -16,8 +16,8 @@ offline = true ...@@ -16,8 +16,8 @@ offline = true
[publish-connection-informations] [publish-connection-informations]
recipe = slapos.cookbook:publish recipe = slapos.cookbook:publish
webdav_access = $${request-frontend:connection-site_url} webdav_access = https://$${request-frontend:connection-domain}
url = $${request-frontend-ajaxupload:connection-site_url} url = https://$${request-frontend-ajaxupload:connection-domain}
webdav_user = $${davstorage:user} webdav_user = $${davstorage:user}
webdav_password = $${davstorage:password} webdav_password = $${davstorage:password}
...@@ -161,18 +161,19 @@ tmp-php = $${rootdirectory:tmp}/php ...@@ -161,18 +161,19 @@ tmp-php = $${rootdirectory:tmp}/php
# Request frontend # Request frontend
[request-frontend-ajaxupload] [request-frontend-ajaxupload]
<= slap-connection <= slap-connection
recipe = slapos.cookbook:requestoptional recipe = slapos.cookbook:request
name = Frontend Ajax name = Frontend Ajax
# XXX We have hardcoded SR URL here. # XXX We have hardcoded SR URL here.
software-url = http://git.erp5.org/gitweb/slapos.git/blob_plain/HEAD:/software/apache-frontend/software.cfg software-url = http://git.erp5.org/gitweb/slapos.git/blob_plain/HEAD:/software/apache-frontend/software.cfg
slave = true slave = true
config = url config = url https-only
config-https-only = true
config-url = https://[$${davstorage:ip}]:$${davstorage:port_ajax}/ config-url = https://[$${davstorage:ip}]:$${davstorage:port_ajax}/
return = site_url return = domain
[request-frontend] [request-frontend]
<= slap-connection <= slap-connection
recipe = slapos.cookbook:requestoptional recipe = slapos.cookbook:request
name = Frontend Webdav name = Frontend Webdav
# XXX We have hardcoded SR URL here. # XXX We have hardcoded SR URL here.
software-url = http://git.erp5.org/gitweb/slapos.git/blob_plain/HEAD:/software/apache-frontend/software.cfg software-url = http://git.erp5.org/gitweb/slapos.git/blob_plain/HEAD:/software/apache-frontend/software.cfg
...@@ -180,7 +181,7 @@ slave = true ...@@ -180,7 +181,7 @@ slave = true
config = url https-only config = url https-only
config-https-only = true config-https-only = true
config-url = https://$${davstorage:user}:$${davstorage:password}@[$${davstorage:ip}]:$${davstorage:port_webdav}/ config-url = https://$${davstorage:user}:$${davstorage:password}@[$${davstorage:ip}]:$${davstorage:port_webdav}/
return = site_url return = domain
# XXX Vivien: promise not working for now # XXX Vivien: promise not working for now
#[frontend-ajaxupload-promise] #[frontend-ajaxupload-promise]
......
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