API Users wit Cookies
Sorry for the wrong branch
This commit is contained in:
1 parent
8b70ed1550
commit
a36749d788
15 files changed
+494
-2
No files matched your search
@@ -0,0 +1,17 @@
|
||||
from pydantic_settings import BaseSettings, SettingsConfigDict
|
||||
|
||||
class Settings(BaseSettings):
|
||||
# Tandoor Server
|
||||
API_KEY: str
|
||||
TANDOOR_URL: str
|
||||
|
||||
# Security
|
||||
SECRET_KEY: str
|
||||
ALGORITHM: str = "HS256"
|
||||
ACCESS_TOKEN_EXPIRE_MINUTES: int = 30
|
||||
|
||||
# Sagt Pydantic, dass es die Werte aus der .env-Datei laden soll
|
||||
model_config = SettingsConfigDict(env_file=".env", env_file_encoding="utf-8")
|
||||
|
||||
# Instanz erzeugen, die du im gesamten Projekt importierst
|
||||
settings = Settings()
|
||||
Reference in new issue
Block a user