forge/arma/server/extension/config.example.toml
Jacob Schmidt 4532e7b73d Add SurrealDB-backed phone storage and message deletion
- Wire phone, garage, and locker stores to the new storage layer
- Add delete flows for messages and emails in the phone UI
- Update contact, mail, and message views for the new data model
2026-04-11 22:36:11 -05:00

60 lines
1.7 KiB
TOML

# Crate Server Configuration
# Copy this file to config.toml and modify as needed
# Place this file in the same directory as your crate_server_x64.dll
[storage]
# Redis remains the default while modules are migrated incrementally.
# Current SurrealDB-backed durable repositories:
# actor, bank, garage, locker, owned garage, owned locker, org, phone.
backend = "redis" # "redis" or "surreal"
[redis]
# Redis server connection settings
host = "127.0.0.1"
port = 6379
db = 0 # Redis database number (0-15)
# Optional authentication
# username = "your_username"
# password = "your_password"
# Optional connection pool settings
max_connections = 10 # Maximum number of connections in pool
min_connections = 2 # Minimum number of idle connections
idle_timeout = 60 # Idle connection timeout in seconds
connect_timeout_ms = 2000 # Pool connect timeout in milliseconds
pool_get_timeout_ms = 2000 # Pool checkout timeout in milliseconds
command_timeout_ms = 2000 # Redis command timeout in milliseconds
[surreal]
# SurrealDB HTTP endpoint. Use "127.0.0.1:8000" for a local SurrealDB server.
endpoint = "127.0.0.1:8000"
namespace = "forge"
database = "main"
# Optional authentication
username = "root"
password = "root"
connect_timeout_ms = 5000
# Example configurations for different environments:
# Development (local Redis)
# host = "127.0.0.1"
# port = 6379
# max_connections = 5
# min_connections = 1
# Production (remote Redis with auth)
# host = "redis.example.com"
# port = 6379
# username = "arma_server"
# password = "secure_password_here"
# max_connections = 20
# min_connections = 5
# idle_timeout = 30
# connect_timeout_ms = 5000
# pool_get_timeout_ms = 5000
# command_timeout_ms = 5000