migration, auth, refactoring, formatting
This commit is contained in:
@@ -5,8 +5,7 @@ INBOX_SERVICE_PORT = 8081
|
||||
|
||||
BACKEND_URL = environ.get("BACKEND_URL") or "https://localhost:8080"
|
||||
OAUTH_CALLBACK_URL = environ.get("OAUTH_CALLBACK_URL") or "https://localhost:8080"
|
||||
RESET_PWD_URL = environ.get("RESET_PWD_URL") or "https://localhost:8080/reset_pwd"
|
||||
CONFIRM_EMAIL_URL = environ.get("CONFIRM_EMAIL_URL") or "https://new.discours.io"
|
||||
CONFIRM_EMAIL_URL = environ.get("AUTH_CONFIRM_URL") or BACKEND_URL + "/confirm"
|
||||
ERROR_URL_ON_FRONTEND = (
|
||||
environ.get("ERROR_URL_ON_FRONTEND") or "https://new.discours.io"
|
||||
)
|
||||
@@ -17,9 +16,9 @@ DB_URL = (
|
||||
)
|
||||
JWT_ALGORITHM = "HS256"
|
||||
JWT_SECRET_KEY = "8f1bd7696ffb482d8486dfbc6e7d16dd-secret-key"
|
||||
JWT_LIFE_SPAN = 24 * 60 * 60 # seconds
|
||||
JWT_AUTH_HEADER = "Auth"
|
||||
EMAIL_TOKEN_LIFE_SPAN = 1 * 60 * 60 # seconds
|
||||
SESSION_TOKEN_HEADER = "Auth"
|
||||
SESSION_TOKEN_LIFE_SPAN = 24 * 60 * 60 # seconds
|
||||
ONETIME_TOKEN_LIFE_SPAN = 1 * 60 * 60 # seconds
|
||||
REDIS_URL = environ.get("REDIS_URL") or "redis://127.0.0.1"
|
||||
|
||||
MAILGUN_API_KEY = environ.get("MAILGUN_API_KEY")
|
||||
|
Reference in New Issue
Block a user