Use a django setting to get PDC links straightened out.
This commit is contained in:
parent
b10b32eec5
commit
afc29d11ef
1 changed files with 3 additions and 0 deletions
|
@ -101,6 +101,9 @@ DATABASES = {
|
||||||
REST_API_URL = 'rest_api/'
|
REST_API_URL = 'rest_api/'
|
||||||
REST_API_VERSION = 'v1'
|
REST_API_VERSION = 'v1'
|
||||||
|
|
||||||
|
# https://github.com/product-definition-center/product-definition-center/issues/352
|
||||||
|
USE_X_FORWARDED_HOST = True
|
||||||
|
|
||||||
BROWSABLE_DOCUMENT_MACROS = {
|
BROWSABLE_DOCUMENT_MACROS = {
|
||||||
# need to be rewrite with the real host name when deploy.
|
# need to be rewrite with the real host name when deploy.
|
||||||
'HOST_NAME': 'http://{{ inventory_hostname }}:80',
|
'HOST_NAME': 'http://{{ inventory_hostname }}:80',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue