Setup reroutes when complete, fix gunicorn check

This commit is contained in:
Sam Chow 2018-08-31 13:16:20 -04:00
parent e711c1efe6
commit dbce986af6
5 changed files with 10 additions and 14 deletions

View file

@ -12,8 +12,9 @@ def _check_gunicorn(endpoint):
client = app.config['HTTPCLIENT']
hostname_parts = app.config['SERVER_HOSTNAME'].split(':')
port = ''
if len(hostname_parts) == 2:
port = ':' + hostname_parts[1]
if hostname_parts[0] == 'localhost':
if len(hostname_parts) == 2:
port = ':' + hostname_parts[1]
scheme = app.config['PREFERRED_URL_SCHEME']
if app.config.get('EXTERNAL_TLS_TERMINATION', False):