modify: jwt 验证
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
[default]
|
||||
app.name = "{{ cookiecutter.project_name }}"
|
||||
app.version = "{{ cookiecutter.project_name }}"
|
||||
app.description = "基于 FastAPI 和 Tortoise-ORM 的 chongming 打包脚手架"
|
||||
app.description = "基于 FastAPI 和 Tortoise-ORM 的 {{ cookiecutter.project_name }} 打包脚手架"
|
||||
app.debug = false
|
||||
env = "production"
|
||||
|
||||
@@ -29,6 +29,13 @@ readonly = false
|
||||
secret_key = "your-secret-key-change-in-production"
|
||||
algorithm = "HS256"
|
||||
access_token_expire_minutes = 30
|
||||
refresh_token_expire_days = 7
|
||||
|
||||
[jwt_cache]
|
||||
enabled = true
|
||||
db_path = "./cache"
|
||||
cleanup_interval_hours = 24
|
||||
max_sessions_per_user = 5
|
||||
|
||||
[development]
|
||||
env = "development"
|
||||
|
||||
Reference in New Issue
Block a user