parent
ca4cc3d5b5
commit
5a8200f17a
3 changed files with 59 additions and 16 deletions
|
@ -242,9 +242,15 @@ def _validate_google_login(config, _):
|
|||
|
||||
def _validate_ssl(config, _):
|
||||
""" Validates the SSL configuration (if enabled). """
|
||||
|
||||
# Skip if non-SSL.
|
||||
if config.get('PREFERRED_URL_SCHEME', 'http') != 'https':
|
||||
return
|
||||
|
||||
# Skip if externally terminated.
|
||||
if config.get('EXTERNAL_TLS_TERMINATION', False) == True:
|
||||
return
|
||||
|
||||
for filename in SSL_FILENAMES:
|
||||
if not config_provider.volume_file_exists(filename):
|
||||
raise Exception('Missing required SSL file: %s' % filename)
|
||||
|
|
Reference in a new issue