From cdb7fe777e2db2cb3918a9bb5ab47b2734c5584a Mon Sep 17 00:00:00 2001 From: Oscar Krause Date: Mon, 19 Dec 2022 14:48:13 +0100 Subject: [PATCH] fixed variable types --- app/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/main.py b/app/main.py index 12a0e5e..4b8cce1 100644 --- a/app/main.py +++ b/app/main.py @@ -21,8 +21,8 @@ app = FastAPI() LEASE_EXPIRE_DELTA = relativedelta(minutes=15) # days=90 -DLS_URL = getenv('DLS_URL', 'localhost') -DLS_PORT = getenv('DLS_PORT', 443) +DLS_URL = str(getenv('DLS_URL', 'localhost')) +DLS_PORT = int(getenv('DLS_PORT', '443')) SITE_KEY_XID = getenv('SITE_KEY_XID', '00000000-0000-0000-0000-000000000000') INSTANCE_KEY_RSA = load_key(join(dirname(__file__), 'cert/instance.private.pem')) INSTANCE_KEY_PUB = load_key(join(dirname(__file__), 'cert/instance.public.pem'))