aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-08-01 15:32:10 -0500
committerAlexander_Kabui2024-08-28 15:02:46 +0300
commitc2fc28076f6a4f259d4ee5bda95812bc188cedd0 (patch)
treeaeb14504b8cfb2142cc34d51e5a6cdf3ebe2b548
parent249dc7110f3f20865e89462f080c6684fc7356af (diff)
downloadgenenetwork2-c2fc28076f6a4f259d4ee5bda95812bc188cedd0.tar.gz
Remove obsolete configurations.
-rw-r--r--gn2/wqflask/__init__.py14
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()