# 定义 dht-search 的推荐起始配置并作为用户配置模板 data_dir = "data" persistence_queue_capacity = 8192 stats_interval_secs = 10 index_batch_size = 1024 index_interval_millis = 5000 [metadata_limits] max_metadata_bytes = 10485760 max_files = 20000 max_name_bytes = 1024 max_path_bytes = 4096 max_path_depth = 64 [dht] port = 12313 netmode = "ipv4-only" hash_queue_capacity = 20000 max_outbound_queries_per_second = 50 outbound_query_burst = 10 metadata_timeout_secs = 6 metadata_queue_capacity = 20000 metadata_workers = 64 metadata_connects_per_second = 16 sample_queries_per_second = 10 peer_lookups_per_second = 8 peer_lookup_max_active = 32 find_node_queries_per_second = 30 find_node_max_in_flight = 64 new_destinations_per_minute = 1200 [http] listen = "127.0.0.1:8080" web_dir = "web/dist" [verification] enabled = true queue_capacity = 10000 max_active = 8 max_peer_attempts = 3 lease_secs = 60 poll_interval_millis = 250