# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY="{{bookwyrm_secret_key}}"

# SECURITY WARNING: don't run with debug turned on in production!
DEBUG=false
USE_HTTPS=true

DOMAIN=reading.unbl.ink
EMAIL=admin@unbl.ink

# Instance defualt language (see options at bookwyrm/settings.py "LANGUAGES"
LANGUAGE_CODE="en-us"
# Used for deciding which editions to prefer
DEFAULT_LANGUAGE="English"

## Leave unset to allow all hosts
# ALLOWED_HOSTS="localhost,127.0.0.1,[::1]"

MEDIA_ROOT=images/

# Database configuration
PGPORT=5432
POSTGRES_PASSWORD={{bookwyrm_db_pass}}
POSTGRES_USER=bookwyrm
POSTGRES_DB=bookwyrm
POSTGRES_HOST=db.service

# Redis activity stream manager
MAX_STREAM_LENGTH=200
REDIS_ACTIVITY_HOST=cache.service
REDIS_ACTIVITY_PORT=6379
REDIS_ACTIVITY_PASSWORD={{redis_password}}
# Optional, use a different redis database (defaults to 0)
REDIS_ACTIVITY_DB_INDEX=10

# Redis as celery broker
REDIS_BROKER_HOST=cache.service
REDIS_BROKER_PORT=6379
REDIS_BROKER_PASSWORD={{redis_password}}
# Optional, use a different redis database (defaults to 0)
REDIS_BROKER_DB_INDEX=10

# Monitoring for celery
FLOWER_PORT=8888
FLOWER_USER=admin
FLOWER_PASSWORD=changeme

# Email config
EMAIL_HOST=smtp.mailgun.org
EMAIL_PORT=587
EMAIL_HOST_USER=mail@your.domain.here
EMAIL_HOST_PASSWORD=emailpassword123
EMAIL_USE_TLS=true
EMAIL_USE_SSL=false
EMAIL_SENDER_NAME=admin
# defaults to DOMAIN
EMAIL_SENDER_DOMAIN=

# Query timeouts
SEARCH_TIMEOUT=15
QUERY_TIMEOUT=5

# Thumbnails Generation
ENABLE_THUMBNAIL_GENERATION=true

# S3 configuration
USE_S3=true
AWS_ACCESS_KEY_ID=BOOKWYRM
AWS_SECRET_ACCESS_KEY={{bookwyrm_s3_secret_key}}

# Commented are example values if you use a non-AWS, S3-compatible service
# AWS S3 should work with only AWS_STORAGE_BUCKET_NAME and AWS_S3_REGION_NAME
# non-AWS S3-compatible services will need AWS_STORAGE_BUCKET_NAME,
# along with both AWS_S3_CUSTOM_DOMAIN and AWS_S3_ENDPOINT_URL

AWS_STORAGE_BUCKET_NAME=bookwyrm
AWS_S3_CUSTOM_DOMAIN=s3.unbl.ink/bookwyrm
# AWS_S3_REGION_NAME=None         # "fr-par"
AWS_S3_ENDPOINT_URL=https://s3.unbl.ink


# Preview image generation can be computing and storage intensive
ENABLE_PREVIEW_IMAGES=True

# Specify RGB tuple or RGB hex strings,
# or use_dominant_color_light / use_dominant_color_dark
PREVIEW_BG_COLOR=use_dominant_color_light
# Change to #FFF if you use use_dominant_color_dark
PREVIEW_TEXT_COLOR=#363636
PREVIEW_IMG_WIDTH=1200
PREVIEW_IMG_HEIGHT=630
PREVIEW_DEFAULT_COVER_COLOR=#002549

# Below are example keys if you want to enable automatically
# sending telemetry to an OTLP-compatible service. Many of
# the main monitoring apps have OLTP collectors, including
# NewRelic, DataDog, and Honeycomb.io - consult their
# documentation for setup instructions, and what exactly to
# put below!
#
# Service name is an arbitrary tag that is attached to any
# data sent, used to distinguish different sources. Useful
# for sending prod and dev metrics to the same place and
# keeping them separate, for instance!

# API endpoint for your provider
OTEL_EXPORTER_OTLP_ENDPOINT=
# Any headers required, usually authentication info
OTEL_EXPORTER_OTLP_HEADERS=
# Service name to identify your app
OTEL_SERVICE_NAME=
