# Server
SERVER_HOST="https://lk.sarex.io"
SERVER_API_HOST="https://api.sarex.io"
SERVER_DEBUG=false
SERVER_ENABLE_SILK=false
SERVER_ALLOWED_HOSTS=["*"]
SERVER_SECRET_KEY="secret"
SERVER_USE_OTEL=false
SERVER_VERIFY_SSL=true
SERVER_LOG_LEVEL=INFO
SERVER_ENABLE_SYNC_RESOURCES=false
# SERVER_MEDIA_ROOT=sarex/media
SERVER_DELETED_TASK_MAX_AGE_DAYS=30
SERVER_EXPIRED_TASK_NOTIFICATION_HOUR=9
SERVER_EXPIRED_TASK_NOTIFICATION_MAX_DAYS=7
SERVER_SEND_UPDATED_PROJECTS_INFO_INTERVAL=5

# Auth
AUTH_ALGORITHM=RS512
# Replace newlines with \n
AUTH_PUBLIC_KEY=''
AUTH_PUBLIC_TOKEN_URL="https://lk.sarex.io/api/token/public/"

# Database (PostgreSQL)
DB_ENGINE="django.db.backends.postgresql"
DB_HOST="localhost"
DB_PORT=5432
DB_DATABASE="sarex_db"
DB_USERNAME="sarex"
DB_PASSWORD="sarex"

# S3
S3_HOST="https://storage.yandexcloud.net"
S3_LOGIN=""
S3_PASSWORD=""
S3_BUCKET="sarex-media-storage"
S3_VERIFY="true"

# Cache (Redis)
CACHE_ENABLE=0
CACHE_EXPIRATION=300
CACHE_HOST="localhost"
CACHE_PORT=6379
CACHE_PASSWORD=None
CACHE_SSL=0
CACHE_SSL_CA_CERTS=None
CACHE_QUEUE=default

# ClickHouse
CLICKHOUSE_ENABLE=0
CLICKHOUSE_HOST="localhost"
CLICKHOUSE_PORT=9000
CLICKHOUSE_USER=""
CLICKHOUSE_PASSWORD=""
CLICKHOUSE_DATABASE="values_db"
CLICKHOUSE_TABLE="values"
CLICKHOUSE_SECURE=0
CLICKHOUSE_VERIFY=0
CLICKHOUSE_CERT=""

# Kafka
KAFKA_ENABLE=0
KAFKA_BOOTSTRAP_SERVERS=["localhost:9092"]
KAFKA_SECURITY_PROTOCOL=""
KAFKA_SASL_MECHANISM=""
KAFKA_SASL_PLAIN_USERNAME="user"
KAFKA_SASL_PLAIN_PASSWORD="password"
KAFKA_SSL_CAFILE=""
KAFKA_TOPICS={"planning": "message-hub-stage"}

# Celery — RabbitMQ (broker)
CELERY_RABBITMQ_HOST='localhost'
CELERY_RABBITMQ_PORT=5672
CELERY_RABBITMQ_USER='rabbit'
CELERY_RABBITMQ_PASSWORD='rabbit'
CELERY_RABBITMQ_VHOST="pm"

# Celery — Redis (result backend)
CELERY_REDIS_HOST='redis-service.sarex-stage.svc.cluster.local'
CELERY_REDIS_PORT=6379
CELERY_REDIS_DATABASE=0
# CELERY_REDIS_PASSWORD=
CELERY_REDIS_SSL=false
# CELERY_REDIS_SSL_CA_CERTS=
CELERY_REDIS_SSL_CERT_REQS=required

# Users service
USERS_HOST=https://lk.sarex.io
USERS_API_PREFIX=/api/core
USERS_INTERNAL_HOST=http://backend-service.sarex-stage.svc.cluster.local:8000
USERS_INTERNAL_PREFIX=/internal
USERS_TIMEOUT=10
USERS_ENABLE=true

# Resources service (IAM/resources)
RESOURCES_INTERNAL_HOST=http://sarex-resources-service.resources-stage
RESOURCES_INTERNAL_PREFIX=/api/v1
RESOURCES_TIMEOUT=10
RESOURCES_ENABLE=true

# EAV service
EAV_HOST=http://eav-service.eav-stage
EAV_API_PREFIX=/api/v0
EAV_API_PREFIX_V1=/api/v1
EAV_TIMEOUT=10
EAV_ENABLE=true

# Gateway service
# GATEWAY_HOST=https://api.sarex.io
GATEWAY_API_PREFIX=/gateway/api/v1
GATEWAY_TIMEOUT=10
GATEWAY_ENABLE=true

# Documentation service
# DOCUMENTATION_HOST=https://api.sarex.io
DOCUMENTATION_API_PREFIX=/documentations/api/v1
DOCUMENTATION_TIMEOUT=10
DOCUMENTATION_ENABLE=true

# Tracing (OpenTelemetry) — used when SERVER_USE_OTEL=true
TRACING_SERVICE_NAME=pm-backend.pm-pord
TRACING_ENDPOINT=localhost:4317
TRACING_INSECURE=false
TRACING_ENVIRONMENT=prod
TRACING_MODULE=planning
TRACING_TEAM=team_planning
TRACING_COMPONENT=backend

# Sentry
SENTRY_USE=true
SENTRY_HOST=''
SENTRY_ENVIRONMENT=""
SENTRY_TRACES_SAMPLE_RATE=1.0
SENTRY_PROFILES_SAMPLE_RATE=0.1
