urls:
  - athena: "${ATHENA_DB_URL}"

hosts:
  - athena: athena-db.com
  - scylladb: "${SCYLLADB_HOST}"

authenticator:
  - scylladb:
        username: "${SCYLLADB_USERNAME}"
        password: "${SCYLLADB_PASSWORD}"
  - athena:
        username: "${ATHENA_USERNAME}"
        password: "${ATHENA_PASSWORD}"

api:
  - port: 4052
  - immortal_cache: false
  - cache_ttl: 240
  - pool_idle_timeout: 90
  - keep_alive_secs: 15
  - client_disconnect_timeout_secs: 60
  - client_request_timeout_secs: 60
  - http_workers: 8
  - http_max_connections: 10000
  - http_backlog: 2048
  - tcp_keepalive_secs: 75
  - cors_allow_any_origin: false
  - cors_allowed_origins: "https://athena-db.com,http://localhost:3000,http://localhost:3001,http://127.0.0.1:3000,http://127.0.0.1:3001,https://studio.athena-db.com"

gateway:
  - force_camel_case_to_snake_case: true
  - auto_cast_uuid_filter_values_to_text: true
  - logging_client: "athena_logging"
  - auth_client: "athena_logging"
  - jdbc_allow_private_hosts: true
  - jdbc_allowed_hosts: ""

# S3 backup configuration.
# All values may be overridden by environment variables directly; the keys here
# serve as documentation of the supported env vars.
#
# Required:
#   ATHENA_BACKUP_S3_BUCKET   – S3 bucket where backups are stored
#
# Optional:
#   ATHENA_BACKUP_S3_REGION   – AWS region (default: us-east-1)
#   ATHENA_BACKUP_S3_ACCESS_KEY – AWS access key ID
#   ATHENA_BACKUP_S3_SECRET_KEY – AWS secret access key
#   ATHENA_BACKUP_S3_ENDPOINT – Custom S3-compatible endpoint (e.g. MinIO)
#   ATHENA_BACKUP_S3_PREFIX   – Object key prefix (default: backups)

backup:
  - s3_bucket: "${ATHENA_BACKUP_S3_BUCKET}"
  - s3_region: "${ATHENA_BACKUP_S3_REGION}"
  - s3_endpoint: "${ATHENA_BACKUP_S3_ENDPOINT}"
  - s3_prefix: "${ATHENA_BACKUP_S3_PREFIX}"

postgres_clients:
  # - test: "${POSTGRES_TEST_URI}"

  - railway_direct: "${POSTGRES_RAILWAY_DIRECT_URI}"
  - athena_logging: "${POSTGRES_ATHENA_LOGGING_URI}"
  - railway_xbp: "${POSTGRES_RAILWAY_XBP_URI}"
  - railway_dexter: "${POSTGRES_RAILWAY_DEXTER_URI}"
  - better_auth: "${POSTGRES_BETTER_AUTH_URI}"
  - stargate: "${POSTGRES_NEON_STARGATE_URI}"
  - xylex_cloud: "${POSTGRES_RAILWAY_XBP_LEGACY_URI}"
  - athena_retention_slave: "${POSTGRES_RAILWAY_SUITSCORE_RETENTION_SLAVE}"
  - railway_athena_backup_testing: "${POSTGRES_RAILWAY_ATHENA_BACKUP_TESTING_URI}"
  - railway_athena_backup_2: "${POSTGRES_ATHENA_BACKUP_2_URI}"
  - neon_db: "${POSTGRES_NEON_DB_URI}"
  - neon_db_documentation_platform: "${POSTGRES_NEON_DB_DOCUMENTATION_PLATFORM_URI}"
