aboutsummaryrefslogtreecommitdiff
path: root/gn2
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-08-01 15:32:10 -0500
committerFrederick Muriuki Muriithi2024-08-01 15:32:10 -0500
commit49749cf4d22b066a3b65133abe3db42366b7b4b2 (patch)
tree7a1cdce4a18cc9f84dcd2ae8681b01c0bb953489 /gn2
parent328ac119863e749b4531cbf56cf6b0623c037b0e (diff)
downloadgenenetwork2-49749cf4d22b066a3b65133abe3db42366b7b4b2.tar.gz
Remove obsolete configurations.
Diffstat (limited to 'gn2')
-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()