feat: Added SSL support for authentication cookies

This commit is contained in:
Lino Mallevaey
2025-08-19 17:53:41 +02:00
parent c30ce3af56
commit cdbd58905d
2 changed files with 5 additions and 0 deletions

View File

@@ -49,6 +49,10 @@ ACCESS_TOKEN_EXPIRE_MINUTES=30
# Algorithme de chiffrement JWT
ALGORITHM=HS256
# Use SSL (True/False)
# You need to set USE_SSL=True if you use HTTPS
USE_SSL=False
# =========================
# EMAIL / VALIDATION
# =========================

View File

@@ -39,6 +39,7 @@ class Settings(BaseSettings):
SECRET_KEY: str
ACCESS_TOKEN_EXPIRE_MINUTES: int = 30
ALGORITHM: str = "HS256"
USE_SSL: bool = False
# =========================
# EMAIL (optionnel)