# config/falcot.toml # Конфигурация Falcot Server с wait-free архитектурой [server] host = "127.0.0.1" http_port = 8080 https_port = 8443 max_connections = 10000 connection_timeout = 30 http2_enabled = true [tls] enabled = true cert_path = "/falcot/certs/server.crt" key_path = "/falcot/certs/server.key" [replication] enabled = true master_nodes = [ "node1.falcot:9090", "node2.falcot:9090", "node3.falcot:9090" ] sync_interval = 1000 # ms replication_factor = 3 [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 = "/falcot/logs/falcot.log" max_file_size = 10485760 # 10MB backup_count = 5 [sharding] enabled = true shards = 3 replication_factor = 2 auto_balance = true [backup] enabled = true interval = 3600 # 1 hour retention = 7 # days path = "/falcot/backups" [security] require_authentication = false jwt_secret = "your-secret-key-here" # Секретный ключ для JWT (JSON Web Tokens) ВАЖНО: В продакшене нужно заменить на уникальный сложный ключ password_hashing_rounds = 12 # Количество раундов хеширования паролей, для защиты паролей пользователей в базе данных [performance] max_memory_mb = 1024 cache_size_mb = 512 worker_threads = 4 io_threads = 2 [monitoring] enabled = true 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