# =====================
# Avatar API - Environment Configuration
# Template Version: 1.0.0
# Compatible with octopize-avatar-deploy: >=1.0.0,<2.0.0
# =====================

# --- Project/Organization ---
ENV_NAME=development

# --- Paths & Storage ---
SECRETS_DIR=.secrets
DB_VOLUME=avatar_postgres_data
SEAWEEDFS_VOLUME=avatar_seaweedfs_data
# --- Service Versions ---
AVATAR_API_VERSION=2.77.0
AVATAR_PDFGENERATOR_VERSION=0.2.3
AVATAR_WEB_VERSION=0.63.0
AVATAR_SEAWEEDFS_REGISTRY=chrislusf
AVATAR_SEAWEEDFS_VERSION=4.22

AVATAR_SEAWEEDFS_LOG_VERBOSITY=0

AVATAR_AUTHENTIK_VERSION=2026.2.2
AVATAR_AUTHENTIK_REPOSITORY=ghcr.io/goauthentik

# --- Authentik Bootstrap Configuration ---
# These credentials are used for automated installation (skip OOBE)
AUTHENTIK_BOOTSTRAP_EMAIL=dev@example.com
AUTHENTIK_BOOTSTRAP_PASSWORD=0rKv5_I_iKP7ZhbENGYKstI4qrM7Z3Bg-tQLln26BN0
AUTHENTIK_BOOTSTRAP_TOKEN=YQNv6iW6Cu-OOGQN96l-TLFuc50YgoDa146h53-pAxg

# --- Service URLs ---
AVATAR_DOMAIN=avatar-dev.example.com
# Defines the URL where the web client is served.
AVATAR_WEB_CLIENT_URL=https://avatar-dev.example.com/web/
# Defines the URL where the PDF generator is served.
AVATAR_PDFGENERATOR_URL=http://pdfgenerator:8000# --- API Configuration ---

# Defines the URL where the API is served.
AVATAR_API_URL=https://avatar-dev.example.com/api
# Public and internal storage endpoint URLs
AVATAR_STORAGE_ENDPOINT_PUBLIC_URL=https://avatar-dev.example.com/storage
AVATAR_STORAGE_ENDPOINT_INTERNAL_URL=http://s3:8333


## SSO Configuration ##
# Blueprint environment variables (used by authentik to resolve !Env tags in the blueprint)
AVATAR_AUTHENTIK_BLUEPRINT_DOMAIN=avatar-dev.example.com
AVATAR_AUTHENTIK_BLUEPRINT_CLIENT_ID=697b048be4044831271eb612e3640e910cd9e7dd4f2a24712a10982b0064fc90
AVATAR_AUTHENTIK_BLUEPRINT_CLIENT_SECRET=2767606655f9243cf0e8bfed15425ea6b041bfeb06dae5ae8fec1c0d6eb7d93e
AVATAR_AUTHENTIK_BLUEPRINT_API_REDIRECT_URI=https://avatar-dev.example.com/api/login/sso/auth
AVATAR_AUTHENTIK_BLUEPRINT_SELF_SERVICE_LICENSE=demo

# SSO settings for the Avatar API service
SSO_CLIENT_ID=697b048be4044831271eb612e3640e910cd9e7dd4f2a24712a10982b0064fc90
SSO_CLIENT_SECRET=2767606655f9243cf0e8bfed15425ea6b041bfeb06dae5ae8fec1c0d6eb7d93e
SSO_PROVIDER_APP_NAME=avatar-api
SSO_PROVIDER_URL=https://avatar-dev.example.com/sso


# Number of days after which datasets will be deleted (ISO8601 timedelta string, e.g. 30d, 2w, 12h)
SHARED_STORAGE_PATH=s3://{user_id}/{expire_days}d # for seaweedfs

# --- Logging & Debug ---
# Whether to prettify the logger output. Default is false, and will output JSON.
USE_CONSOLE_LOGGING=false
# Whether to enable Sentry for error tracking.
IS_SENTRY_ENABLED=false
# Logging level. Can be one of DEBUG, INFO, WARNING, ERROR, CRITICAL.
LOG_LEVEL=INFO

# =============================
# SMTP Email Configuration
#
# SMTP_HOST=smtp.example.com
# SMTP_PORT=587
# SMTP_USE_TLS=true
# SMTP_START_TLS=false
# SMTP_VERIFY=true
# SMTP_SENDER_EMAIL=dev@example.com
# # SMTP_USERNAME=<your-smtp-username>    # Optional, if SMTP server requires auth
# # SMTP_PASSWORD=<your-smtp-password>    # Optional, if SMTP server requires auth


# # =============================

# =============================
# To enable Telemetry, set the following variables:
# Telemetry is disabled
# TELEMETRY_S3_ENDPOINT_URL=
# TELEMETRY_S3_REGION=
# TELEMETRY_S3_BUCKET_NAME=
# =============================
