Rename SERVER_NAME to SERVER_HOSTNAME to fix the subdomain routing problems.

This commit is contained in:
jakedt 2014-04-11 11:17:45 -04:00
parent 8fac0474b5
commit 14fba3ae7c
5 changed files with 10 additions and 9 deletions

View file

@ -1485,7 +1485,8 @@ def get_pull_credentials(robotname):
return {
'username': robot.username,
'password': login_info.service_ident,
'registry': '%s://%s/v1/' % (app.config['PREFERRED_URL_SCHEME'], app.config['SERVER_NAME']),
'registry': '%s://%s/v1/' % (app.config['PREFERRED_URL_SCHEME'],
app.config['SERVER_HOSTNAME']),
}