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

# --- Project/Organization ---
ENV_NAME=production

# --- Paths & Storage ---
SECRETS_DIR=.secrets
DB_VOLUME=avatar_postgres_data
SEAWEEDFS_VOLUME=avatar_seaweedfs_data

# --- Service Versions ---
AVATAR_API_VERSION=2.20.1
AVATAR_PDFGENERATOR_VERSION=latest
AVATAR_WEB_VERSION=0.40.0
AVATAR_SEAWEEDFS_REGISTRY=quay.io/octopize
AVATAR_SEAWEEDFS_VERSION=0.2.0

AVATAR_SEAWEEDFS_LOG_VERBOSITY=0

AVATAR_AUTHENTIK_VERSION=2025.10.2
AVATAR_AUTHENTIK_REPOSITORY=ghcr.io/goauthentik


# --- Service URLs ---
AVATAR_DOMAIN=https://avatar.example.com
# Defines the URL where the API is served.
AVATAR_API_URL=https://avatar.example.com/api
# Defines the URL where the web client is served.
AVATAR_WEB_CLIENT_URL=https://avatar.example.com
# Defines the URL where the PDF generator is served.
AVATAR_PDFGENERATOR_URL=http://pdfgenerator:8000
# Public and internal storage endpoint URLs
AVATAR_STORAGE_ENDPOINT_PUBLIC_URL=https://avatar.example.com/storage
AVATAR_STORAGE_ENDPOINT_INTERNAL_URL=http://s3:8333


## SSO Configuration ##
SSO_CLIENT_ID=<SETUP-THROUGH-AUTHENTIK>
SSO_CLIENT_SECRET=<SETUP-THROUGH-AUTHENTIK>
SSO_PROVIDER_APP_NAME=<SETUP-THROUGH-AUTHENTIK>
SSO_PROVIDER_URL=https://avatar.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=true
# Logging level. Can be one of DEBUG, INFO, WARNING, ERROR, CRITICAL.
LOG_LEVEL=INFO

# =============================
# SMTP Email Configuration
#
# Choose between 'smtp' and 'aws' for MAIL_PROVIDER.
# If `aws` is chosen, you will be given credentials by Octopize
# to insert into the secrets directory.
# If `smtp` is chosen, you will need to provide your own SMTP server details.
# See below for SMTP configuration.
MAIL_PROVIDER=smtp


# =============================
# To enable SMTP email sending, set the following variables:
# MAIL_PROVIDER=smtp
# SMTP_HOST=smtp.example.com
# SMTP_PORT=587
# SMTP_USE_TLS=true
# SMTP_START_TLS=false
# SMTP_VERIFY=true
# SMTP_SENDER_EMAIL=noreply@example.com
# # SMTP_USERNAME=<your-smtp-username>    # Optional, if SMTP server requires auth
# # SMTP_PASSWORD=<your-smtp-password>    # Optional, if SMTP server requires auth


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

# =============================
# Email Sending Control
#
# To enable authentication for email-based login/registration, set:
USE_EMAIL_AUTHENTICATION=true

# =============================
# To enable Telemetry, set the following variables:
TELEMETRY_S3_ENDPOINT_URL=https://s3.fr-par.scw.cloud
TELEMETRY_S3_REGION=fr-par
# TELEMETRY_S3_BUCKET_NAME=<bucket-name> # Will be provided to you by Octopize
# =============================
# test change