Skip to content

Commit

Permalink
bin/darkirc/config: add darkirc-mixed & darkirc-tor config examples
Browse files Browse the repository at this point in the history
  • Loading branch information
darkfi committed Oct 16, 2024
1 parent c75257c commit 19fc0a8
Show file tree
Hide file tree
Showing 2 changed files with 97 additions and 0 deletions.
49 changes: 49 additions & 0 deletions bin/darkirc/config/darkirc-mixed.toml
Original file line number Diff line number Diff line change
@@ -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
48 changes: 48 additions & 0 deletions bin/darkirc/config/darkirc-tor.toml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 19fc0a8

Please sign in to comment.