Skip to content

Commit

Permalink
fix: parse url as string
Browse files Browse the repository at this point in the history
  • Loading branch information
Hicham committed Dec 12, 2024
1 parent 3d74602 commit e8ddad8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion admin_cohort/services/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ class JWTAuth(Auth):

def __init__(self):
super().__init__()
self.server_url = env.url("JWT_SERVER_URL", default="")
self.server_url = env.str("JWT_SERVER_URL", default="")
self.server_headers = {"X-User-App": env.str("JWT_APP_NAME", default="")}
self.signing_key = env.str("JWT_SIGNING_KEY", default="")

Expand Down
2 changes: 1 addition & 1 deletion admin_cohort/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def get_project_info():

BACK_HOST = env.str("BACK_HOST", default="localhost:8000")
BACK_URL = f"https://{BACK_HOST}"
FRONT_URL = env.url("FRONT_URL", default="http://localhost:3000")
FRONT_URL = env.str("FRONT_URL", default="http://localhost:3000")
FRONT_URLS = env.str("FRONT_URLS", default="http://localhost:3000").split(',')

# SECURITY WARNING: keep the secret key used in production secret!
Expand Down

0 comments on commit e8ddad8

Please sign in to comment.