Skip to content

Commit 6fe9873

Browse files
committed
full commit on deployment
1 parent 46388b8 commit 6fe9873

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

core/config/jwt.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
import os
2-
2+
from pathlib import Path
33
from datetime import timedelta
44

55
from dotenv import load_dotenv
6-
load_dotenv()
6+
7+
BASE_DIR = Path(__file__).resolve().parent.parent.parent
8+
9+
load_dotenv(os.path.join(BASE_DIR, '.env'))
710

811
with open(str(os.getenv("PRIVATE_KEY_PATH", "security/private_key")), "r") as f:
912
PRIVATE_KEY = f.read()

0 commit comments

Comments
 (0)