From 19fc0a816519aa33ece607d7975e2afbb3577faf Mon Sep 17 00:00:00 2001 From: darkfi Date: Wed, 16 Oct 2024 19:44:57 -0400 Subject: [PATCH] bin/darkirc/config: add darkirc-mixed & darkirc-tor config examples --- bin/darkirc/config/darkirc-mixed.toml | 49 +++++++++++++++++++++++++++ bin/darkirc/config/darkirc-tor.toml | 48 ++++++++++++++++++++++++++ 2 files changed, 97 insertions(+) create mode 100644 bin/darkirc/config/darkirc-mixed.toml create mode 100644 bin/darkirc/config/darkirc-tor.toml diff --git a/bin/darkirc/config/darkirc-mixed.toml b/bin/darkirc/config/darkirc-mixed.toml new file mode 100644 index 000000000000..0a02435f006e --- /dev/null +++ b/bin/darkirc/config/darkirc-mixed.toml @@ -0,0 +1,49 @@ +## List of channels to autojoin for new client connections +autojoin = [ + "#dev", + "#memes", + "#philosophy", + "#markets", + "#math", + "#random", + "#lunardao", +] + +## P2P network settings +[net] +## Path to the P2P datastore +datastore = "~/.local/darkfi/darkirc" + +## Path to a configured hostlist for saving known peers +hostlist = "~/.local/darkfi/darkirc/p2p_hostlist.tsv" + +## connection settings +outbound_connect_timeout = 60 +channel_handshake_timeout = 55 +channel_heartbeat_interval = 90 +outbound_peer_discovery_cooloff_time = 60 + +## Whitelisted transports for outbound connections +allowed_transports = ["tcp+tls", "tor"] + +## Addresses we want to advertise to peers +external_addr = ["tcp+tls://[youripv6address]:26661", "tor://youraddress.onion:your-port"] + +## Seed nodes to connect to +seeds = [ + "tcp+tls://lilith1.dark.fi:5262", + "tor://rwjgdy7bs4e3eamgltccea7p5yzz3alfi2vps2xefnihurbmpd3b7hqd.onion:5262", + "tor://f5mldz3utfrj5esn7vy7osa6itusotix6nsjhv4uirshkcvgglb3xdqd.onion:5262", +] + +## P2P accept addresses +inbound = ["tcp://127.0.0.1:your-port", "tcp+tls://[::]:26661"] + +## Outbound connection slots +outbound_connections = 8 + +## Inbound connection slots +inbound_connections = 8 + +## Enable transport mixing +transport_mixing = true diff --git a/bin/darkirc/config/darkirc-tor.toml b/bin/darkirc/config/darkirc-tor.toml new file mode 100644 index 000000000000..6b08fb283b69 --- /dev/null +++ b/bin/darkirc/config/darkirc-tor.toml @@ -0,0 +1,48 @@ +## List of channels to autojoin for new client connections +autojoin = [ + "#dev", + "#memes", + "#philosophy", + "#markets", + "#math", + "#random", + "#lunardao", +] + +## P2P network settings +[net] +## Path to the P2P datastore +datastore = "~/.local/darkfi/darkirc" + +## Path to a configured hostlist for saving known peers +hostlist = "~/.local/darkfi/darkirc/p2p_hostlist.tsv" + +## connection settings +outbound_connect_timeout = 60 +channel_handshake_timeout = 55 +channel_heartbeat_interval = 90 +outbound_peer_discovery_cooloff_time = 60 + +## Whitelisted transports for outbound connections +allowed_transports = ["tor", "tor+tls"] + +## Addresses we want to advertise to peers +external_addr = ["tor://youraddress.onion:your-port"] + +## Seed nodes to connect to +seeds = [ + "tor://rwjgdy7bs4e3eamgltccea7p5yzz3alfi2vps2xefnihurbmpd3b7hqd.onion:5262", + "tor://f5mldz3utfrj5esn7vy7osa6itusotix6nsjhv4uirshkcvgglb3xdqd.onion:5262", +] + +## P2P accept addresses +inbound = ["tcp://127.0.0.1:your-port"] + +## Outbound connection slots +outbound_connections = 8 + +## Inbound connection slots +inbound_connections = 8 + +## Enable transport mixing +transport_mixing = false