18 lines
567 B
Python
18 lines
567 B
Python
import os
|
|
from dotenv import load_dotenv
|
|
|
|
# Load environment variables from .env file
|
|
load_dotenv()
|
|
|
|
class Settings:
|
|
"""
|
|
A simple class to hold all application settings, loaded from environment variables.
|
|
"""
|
|
ENCRYPTION_KEY: str = os.getenv("ENCRYPTION_KEY")
|
|
TWITCH_CLIENT_ID: str = os.getenv("TWITCH_CLIENT_ID")
|
|
TWITCH_CLIENT_SECRET: str = os.getenv("TWITCH_CLIENT_SECRET")
|
|
|
|
# The full URL where our app is running, needed for the redirect_uri
|
|
APP_BASE_URL: str = "http://localhost:8000" # Update for production
|
|
|
|
settings = Settings() |