from pydantic_settings import BaseSettings

class Settings(BaseSettings):
    frontend_origin: str = 'http://localhost:3000'
    pocketbase_url: str = 'http://localhost:8090'
    pocketbase_admin_token: str = ''  # PocketBase admin API key for server-side writes
    # MinIO / S3-compatible storage
    s3_bucket: str = 'idconvert'
    s3_endpoint_url: str = 'http://localhost:9000'
    s3_region: str = 'us-east-1'
    aws_access_key_id: str = 'minioadmin'
    aws_secret_access_key: str = 'minioadmin'
    s3_presign_expiry_seconds: int = 3600
    # Stripe
    stripe_secret_key: str = ''
    stripe_webhook_secret: str = ''
    stripe_publishable_key: str = ''

    class Config:
        env_file = '.env'
        env_file_encoding = 'utf-8'

settings = Settings()
