diff options
author | Frederick Muriuki Muriithi | 2024-08-01 15:32:10 -0500 |
---|---|---|
committer | Alexander_Kabui | 2024-08-28 15:02:46 +0300 |
commit | c2fc28076f6a4f259d4ee5bda95812bc188cedd0 (patch) | |
tree | aeb14504b8cfb2142cc34d51e5a6cdf3ebe2b548 /gn2 | |
parent | 249dc7110f3f20865e89462f080c6684fc7356af (diff) | |
download | genenetwork2-c2fc28076f6a4f259d4ee5bda95812bc188cedd0.tar.gz |
Remove obsolete configurations.
Diffstat (limited to 'gn2')
-rw-r--r-- | gn2/wqflask/__init__.py | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/gn2/wqflask/__init__.py b/gn2/wqflask/__init__.py index 3744db50..00fe5127 100644 --- a/gn2/wqflask/__init__.py +++ b/gn2/wqflask/__init__.py @@ -56,17 +56,6 @@ def numcoll(): return "ERROR" -def parse_ssl_key(app: Flask, keyconfig: str): - """Parse key file paths into objects""" - keypath = app.config.get(keyconfig, "").strip() - if not bool(keypath): - app.logger.error("Expected configuration '%s'", keyconfig) - return - - with open(keypath) as _sslkey: - app.config[keyconfig] = JsonWebKey.import_key(_sslkey.read()) - - def dev_loggers(appl: Flask) -> None: """Default development logging.""" formatter = logging.Formatter( @@ -150,9 +139,6 @@ except StartupError as serr: server_session = Session(app) -parse_ssl_key(app, "SSL_PRIVATE_KEY") -parse_ssl_key(app, "AUTH_SERVER_SSL_PUBLIC_KEY") - @app.before_request def before_request(): g.request_start_time = time.time() |