Files
jusfutura/app/config.py
T
2026-08-19 21:08:14 -03:00

27 lines
833 B
Python

import os
# All comments are in English.
class Config:
"""Base configuration for the Flask application."""
AUTH_MODE = os.getenv("AUTH_MODE", "db") # "db" ou "oauth"
# Secret key for sessions and cookies.
SECRET_KEY = os.getenv("FLASK_SECRET_KEY", "change-this-secret")
# Google OAuth configuration.
#GOOGLE_CLIENT_ID = os.getenv("GOOGLE_CLIENT_ID", "")
#GOOGLE_CLIENT_SECRET = os.getenv("GOOGLE_CLIENT_SECRET", "")
#GOOGLE_REDIRECT_URI = os.getenv("GOOGLE_REDIRECT_URI", "")
# Ollama base URL (HTTP endpoint).
OLLAMA_BASE_URL = os.getenv("OLLAMA_BASE_URL", "http://host.docker.internal:11434")
# Allowed models mapping (user-facing name -> Ollama model identifier).
MODEL_MAP = {
"llama3.2": "llama3.2",
"gemma4": "gemma4",
"qwen2.5": "qwen2.5",
}