We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a23b515 commit a1b05acCopy full SHA for a1b05ac
app/core/config.py
@@ -9,7 +9,7 @@ class Settings:
9
SQLALCHEMY_DATABASE_URL = "mysql+asyncmy://root:[email protected]:3306/JieNote" # 替换为实际的用户名、密码和数据库名称
10
SECRET_KEY: str = os.getenv("SECRET_KEY", "default_secret_key") # JWT密钥
11
ALGORITHM: str = "HS256" # JWT算法
12
- ACCESS_TOKEN_EXPIRE_MINUTES: int = 5 # token过期时间
+ ACCESS_TOKEN_EXPIRE_MINUTES: int = 1440 # token过期时间
13
REFRESH_TOKEN_EXPIRE_DAYS: int = 7 # 刷新token过期时间7天
14
SMTP_SERVER: str = "smtp.163.com" # SMTP服务器
15
SMTP_PORT: int = 465 # SMTP端口
0 commit comments