# Conduit Homeserver Configuration
# Reference: https://docs.conduit.rs/configuration.html

[global]
# Server name - MUST match your domain (e.g., matrix.fleet.tld)
server_name = "matrix.fleet.tld"

# Database backend: "rocksdb" (default) or "postgresql"
database_backend = "rocksdb"

# Connection strings (adjust if using PostgreSQL)
database_path = "/var/lib/matrix-conduit/"

# Max size for uploads (media)
max_request_size = 20_000_000  # 20MB

# Allow registration (disable after initial setup!)
allow_registration = true

# Allow guest access
allow_guest_registration = false

# Enable federation (required for fleet-wide comms)
allow_federation = true

# Allow room directory listing
allow_public_room_directory_over_federation = false

# Admin users (Matrix user IDs)
admin = ["@alexander:matrix.fleet.tld"]

# Logging
log = "info,rocket=off,_=off"

[global.address]
bind = "0.0.0.0"
port = 6167

# Optional: S3-compatible media storage offload
# [global.media]
# backend = "s3"
# region = "us-east-1"
# endpoint = "https://s3.provider.com"
# bucket = "conduit-media"
# access_key_id = ""
# secret_key = ""
