mirror of
https://github.com/kevin-DL/fast_api_api_template.git
synced 2026-01-11 17:54:35 +00:00
Register
Login Basic migrations with alembic Get items
This commit is contained in:
15
api/config.py
Normal file
15
api/config.py
Normal file
@@ -0,0 +1,15 @@
|
||||
from pydantic import BaseSettings
|
||||
|
||||
|
||||
class Settings(BaseSettings):
|
||||
app_name: str = "Fast API Template"
|
||||
sqlalchemy_database_url: str
|
||||
secret_key: str
|
||||
algorithm: str
|
||||
access_token_expire_minutes: int
|
||||
|
||||
class Config:
|
||||
env_file = ".env"
|
||||
|
||||
|
||||
settings = Settings()
|
||||
Reference in New Issue
Block a user