[ha] Re-enable nginx proxy for Horizon
[fuel.git] / mcp / patches / salt-formula-apache / 0001-wsgi.conf-Allow-configuration-of-locations.patch
1 ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
2 : Copyright (c) 2019 Mirantis Inc., Enea AB and others.
3 :
4 : All rights reserved. This program and the accompanying materials
5 : are made available under the terms of the Apache License, Version 2.0
6 : which accompanies this distribution, and is available at
7 : http://www.apache.org/licenses/LICENSE-2.0
8 ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
9 From: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
10 Date: Wed, 5 Jun 2019 14:23:21 +0200
11 Subject: [PATCH] wsgi.conf: Allow configuration of `locations`
12
13 wsgi configuration template should also asupport configuring locations
14 in order to allow Horizon resources to be accessed from '/static',
15 otherwise the system level reclass config for it is silently ignored.
16
17 Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
18 ---
19  apache/files/wsgi.conf | 2 ++
20  1 file changed, 2 insertions(+)
21
22 diff --git a/apache/files/wsgi.conf b/apache/files/wsgi.conf
23 index cad01dc..d375708 100644
24 --- a/apache/files/wsgi.conf
25 +++ b/apache/files/wsgi.conf
26 @@ -26,4 +26,6 @@ Listen {{ site.host.address }}:{{ site.host.port }}
27          Allow from all
28      </IfVersion>
29    </Directory>
30 +
31 +  {%- include "apache/files/_locations.conf" %}
32  </VirtualHost>