Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions .env

This file was deleted.

3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
env
__pycache__
articles
app.log
app.log
.env
4 changes: 2 additions & 2 deletions app/core/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
class Settings:
PROJECT_NAME: str = "JieNote Backend" # 项目名称
VERSION: str = "1.0.0" # 项目版本
SQLALCHEMY_DATABASE_URL = "mysql+asyncmy://root:[email protected]:3306/JieNote" # 替换为实际的用户名、密码和数据库名称
SQLALCHEMY_DATABASE_URL = os.getenv("SQLALCHEMY_DATABASE_URL", "default") # 替换为实际的用户名、密码和数据库名称
SECRET_KEY: str = os.getenv("SECRET_KEY", "default_secret_key") # JWT密钥
ALGORITHM: str = "HS256" # JWT算法
ACCESS_TOKEN_EXPIRE_MINUTES: int = 1440 # token过期时间
ACCESS_TOKEN_EXPIRE_MINUTES: int = 5 # token过期时间
REFRESH_TOKEN_EXPIRE_DAYS: int = 7 # 刷新token过期时间7天
SMTP_SERVER: str = "smtp.163.com" # SMTP服务器
SMTP_PORT: int = 465 # SMTP端口
Expand Down
Loading