From 03fc25e88a4f5df50b4fc13851613cb5270f5eb2 Mon Sep 17 00:00:00 2001 From: Gabriel Carneiro Date: Wed, 4 Oct 2023 23:01:58 -0300 Subject: [PATCH] update settings --- src/stream_auth/settings.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/stream_auth/settings.py b/src/stream_auth/settings.py index 32e7157..ffb2471 100644 --- a/src/stream_auth/settings.py +++ b/src/stream_auth/settings.py @@ -12,8 +12,9 @@ KEY_DIR = os.path.join(APP_DIR, 'keys') JWT_PRIV_PATH = os.path.join(KEY_DIR, 'jwtRS256.key') JWT_PUB_PATH = os.path.join(KEY_DIR, 'jwtRS256.key.pub') JWT_EXP_TIME = 2592000 - -USER_DATABASE = '/home/gabriel/db.json' -STREAM_DATABASE = '/home/gabriel/streams.json' -LIVE_STREAM_DATABASE = '/home/gabriel/live_streams.json' +DBS_PATH = os.path.join(APP_DIR, 'dbs') +os.path.join(DBS_PATH, 'x.json') +USER_DATABASE = os.path.join(DBS_PATH, 'users.json') +STREAM_DATABASE = os.path.join(DBS_PATH, 'streams.json') +LIVE_STREAM_DATABASE = os.path.join(DBS_PATH, 'live_streams.json') STREAM_KEY_LENGTH = 32