From afc29d11ef13b82af4ec28ceef0cdb3d24eb7bdd Mon Sep 17 00:00:00 2001 From: Ralph Bean Date: Fri, 13 May 2016 18:37:00 +0000 Subject: [PATCH] Use a django setting to get PDC links straightened out. --- roles/pdc/frontend/templates/settings_local.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/roles/pdc/frontend/templates/settings_local.py b/roles/pdc/frontend/templates/settings_local.py index 94012c6033..9289cdff2b 100644 --- a/roles/pdc/frontend/templates/settings_local.py +++ b/roles/pdc/frontend/templates/settings_local.py @@ -101,6 +101,9 @@ DATABASES = { REST_API_URL = 'rest_api/' REST_API_VERSION = 'v1' +# https://github.com/product-definition-center/product-definition-center/issues/352 +USE_X_FORWARDED_HOST = True + BROWSABLE_DOCUMENT_MACROS = { # need to be rewrite with the real host name when deploy. 'HOST_NAME': 'http://{{ inventory_hostname }}:80',