Setup reroutes when complete, fix gunicorn check
This commit is contained in:
parent
e711c1efe6
commit
dbce986af6
5 changed files with 10 additions and 14 deletions
|
@ -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):
|
||||
|
|
Reference in a new issue