README.md - added configuration variables & implemented support for 'LEASE_EXPIRE_DAYS'

This commit is contained in:
Oscar Krause
2022-12-20 15:05:50 +01:00
parent 7ab5e7b264
commit 8d93c92de4
2 changed files with 9 additions and 1 deletions

View File

@@ -31,7 +31,7 @@ def load_key(filename) -> RsaKey:
app, db = FastAPI(), dataset.connect('sqlite:///db.sqlite')
LEASE_EXPIRE_DELTA = relativedelta(minutes=15) # days=90
LEASE_EXPIRE_DELTA = relativedelta(days=int(getenv('LEASE_EXPIRE_DAYS', 90)))
DLS_URL = str(getenv('DLS_URL', 'localhost'))
DLS_PORT = int(getenv('DLS_PORT', '443'))