Commit d9dcfd95 authored by Łukasz Nowak's avatar Łukasz Nowak

React on optional backend-path from json.

It can be formatted with %(site-id)s in order to put site id there.
parent 2ca71445
......@@ -170,7 +170,10 @@ class Recipe(GenericSlapRecipe):
server_check_path='/%s/getId' % site_id,
haproxy_backend_list=' '.join(haproxy_backend_list),
ssl_authentication=backend_configuration.get('ssl-authentication',
False)
False),
backend_path=backend_configuration.get('backend-path', '/') % {
'site-id': site_id}
)
current_apache_port += 1
output += snippet_backend % backend_dict
......
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