futriix/config.toml

83 lines
2.0 KiB
TOML
Raw Permalink Normal View History

2025-11-28 01:03:13 +03:00
# config.toml
# Конфигурация Futriix Server с wait-free архитектурой
[server]
host = "127.0.0.1"
http_port = 9090
https_port = 8443
max_connections = 10000
connection_timeout = 30
http2_enabled = true
http = true # Новая директива: включение HTTP сервера
https = false # Новая директива: включение HTTPS сервера
[tls]
enabled = false
cert_path = "/futriix/certs/server.crt" # Изменено с /falcot/certs
key_path = "/futriix/certs/server.key" # Изменено с /falcot/certs
[replication]
enabled = true
master_nodes = [
"node1.futriix:9090", # Изменено с falcot на futriix
"node2.futriix:9090",
"node3.futriix:9090"
]
sync_interval = 1000 # ms
replication_factor = 3
[sharding]
enabled = true
shards = 3
replication_factor = 2
auto_balance = true
[cluster] # Новая секция для кластера
enabled = true
name = "futriix-main-cluster"
[acl]
enabled = false
allowed_ips = ["127.0.0.1", "192.168.1.0/24"]
denied_ips = ["10.0.0.5"]
[logging]
level = "info"
file_path = "/futriix/logs/futriix.log" # Изменено с falcot.log
max_file_size = 10485760 # 10MB
backup_count = 5
[backup]
enabled = true
interval = 3600 # 1 hour
retention = 7 # days
path = "/futriix/backups" # Изменено с /falcot/backups
[csv] # Новая секция для CSV
import_dir = "/futriix/csv/import" # Директория для импорта
export_dir = "/futriix/csv/export" # Директория для экспорта
max_file_size = 104857600 # 100MB
[security]
require_authentication = false
jwt_secret = "your-secret-key-here"
password_hashing_rounds = 12
[performance]
max_memory_mb = 1024
cache_size_mb = 512
worker_threads = 4
io_threads = 2
[monitoring]
enabled = false
prometheus_port = 9090
health_check_interval = 30
[limits]
max_documents_per_collection = 1000000
max_collections = 1000
max_indexes_per_collection = 16
request_timeout_ms = 5000
max_request_size_mb = 10