# SPDX-FileCopyrightText: 2022 Konstantinos Thoukydidis <mail@dbzer0.com>
#
# SPDX-License-Identifier: AGPL-3.0-or-later

# Horde Display
HORDE_TITLE="AI Horde"
HORDE_NOUN="Horde"
HORDE_URL="https://aihorde.net"
HORDE_CONTACT_EMAIL="aihorde@dbzer0.com"
HORDE_LOGO="https://raw.githubusercontent.com/db0/Stable-Horde/main/img_stable/0.jpg"
HORDE_HTML_TERMS="terms_of_service.html"
HORDE_HTML_PRIVACY="privacy_policy.html"
HORDE_MARKDOWN_INDEX="index_stable.md"
# The elected image-reference publisher fetches through horde-model-reference in REPLICA mode.
# Fleet publication requires a PRIMARY; HMR's GitHub fallback is never published to Redis.
HORDE_MODEL_REFERENCE_PRIMARY_API_URL="https://models.aihorde.net/api"
# Where horde-model-reference writes its on-disk reference cache. Relative paths resolve against
# the process working directory, so set it explicitly for a deployment.
AIWORKER_CACHE_HOME="models"
# How long a cold-starting instance waits for the elected bootstrap publisher to populate Redis.
HORDE_MODEL_REFERENCE_BOOTSTRAP_TIMEOUT="195"
# Maximum duration of the fenced Redis publication lease used for one complete remote refresh.
HORDE_MODEL_REFERENCE_PUBLISH_LOCK_SECONDS="180"
# Categories whose pending (beta) models are merged over the canonical reference. Empty disables beta.
HORDE_BETA_MODEL_CATEGORIES="image_generation"
# A reader-level AI-Horde API key for the pending-model reads. The anonymous key is accepted.
HORDE_BETA_MODELS_API_KEY="0000000000"
HORDE_IMAGE_LLM_REFERENCE="https://raw.githubusercontent.com/db0/AI-Horde-text-model-reference/main/db.json"
# Set to 1 to prevent user specifying a worker who doesn't have them as prio
# When enabled. targeted worker request will also not use any kudos except some horde tax
HORDE_REQUIRE_MATCHED_TARGETING=0
# Set to 1 to make specifying a worker allow/denylist require upfront kudos
HORDE_UPFRONT_KUDOS_ON_WORKERLIST=0
# Google Oauth2
GOOGLE_CLIENT_ID=""
GLOOGLE_CLIENT_SECRET=""
GOOGLE_VERIFICATION_STRING=""
# Discord Oauth2
DISCORD_CLIENT_ID=""
DISCORD_CLIENT_SECRET=""
# Github Oauth2
GITHUB_CLIENT_ID=""
GITHUB_CLIENT_SECRET=""
# Patreon Creator Token
PATREON_CREATOR_ACCESS_TOKEN=""
# Put some random secure string
secret_key="changeme"
# The FQDN of your redis DB loadblancer. This is used to store all caches. You can use the redis IP directly if you do not have an FQDN
REDIS_IP="redis.example.com"
REDIS_PORT=6379
# The IPs of your redis component DBs. We use this to write all caches, to facilitate failovers
REDIS_SERVERS='["127.0.0.1"]'
# If you have a postgresql DB available, set this to 0
USE_SQLITE = 1
# The FQDN of your postgres DB. You can use an IP address if you don't have an FQDN
POSTGRES_URL="postgres.example.com/postgres"
POSTGRES_PASS="changeme"
POSTGRES_USER="postgres"
# The user which will be the admin of this horde
ADMINS='["db0#1"]'
# How much Kudos a user needs to generate with their worker until they become trusted
KUDOS_TRUST_THRESHOLD=1
# AWS/Cloudflare R2 Info
AWS_ACCESS_KEY_ID=""
AWS_SECRET_ACCESS_KEY=""
AWS_DEFAULT_REGION=auto
# Shared AWS/Cloudflare R2 Info
SHARED_AWS_ACCESS_ID=""
SHARED_AWS_ACCESS_KEY=""
R2_TRANSIENT_ACCOUNT="https://a223539ccf6caa2d76459c9727d276e6.r2.cloudflarestorage.com"
R2_PERMANENT_ACCOUNT="https://a223539ccf6caa2d76459c9727d276e6.r2.cloudflarestorage.com"
R2_TRANSIENT_BUCKET="horde-transient"
R2_PERMANENT_BUCKET="horde-permanent"
R2_SOURCE_IMAGE_BUCKET="horde-source-images"
# Fill these in from https://www.google.com/recaptcha/ to enable recaptcha on registration
RECAPTCHA_SITE_KEY=""
RECAPTCHA_SECRET_KEY=""
# Provide a stripe API key to enable stripe integration. The API key needs read on product and customers.
STRIPE_API_KEY=""
