Commit 2925d93e authored by BERJON Matthieu's avatar BERJON Matthieu
Browse files

Update of the Nginx configuration

I updated the Nginx configuration that is generated in the Python
script. At the moment the configuration is hard-coded and need to be
improved. It's working as such at the moment.
Signed-off-by: BERJON Matthieu's avatarMatthieu Berjon <>
parent 574022a0
......@@ -154,6 +154,18 @@ server {{
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-Proto $scheme;
location /django
proxy_pass http://dev-django:8080/;
proxy_redirect off;
proxy_buffering off;
# To work properly, turbolinks must know the host and scheme (https),
# thus we do not use proxy_redirect but forward the two headers instead
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-Proto $scheme;
""".format(container=container, port=port, fqdn=fqdn, fport=fport,
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