Use the hostname instead of the IP in the settings

This commit is contained in:
Pierre-Yves Chibon 2015-09-29 17:53:17 +02:00
parent 9e75547d36
commit 73356a634b

View file

@ -84,7 +84,7 @@ REST_API_VERSION = 'v1'
BROWSABLE_DOCUMENT_MACROS = {
# need to be rewrite with the real host name when deploy.
'HOST_NAME': 'http://{{ansible_ssh_host}}:80',
'HOST_NAME': 'http://{{ hostbase }}:80',
# make consistent with rest api root.
'API_PATH': '%s%s' % (REST_API_URL, REST_API_VERSION),
}