/ bin / darkirc / darkirc_config.toml
darkirc_config.toml
  1  ## This is the darkirc configuration file.
  2  ## Review it carefully.
  3  
  4  ## IRC listen URL
  5  #irc_listen = "tcp://127.0.0.1:6667"
  6  
  7  ## TLS certificate path if IRC acceptor uses TLS (optional)
  8  #irc_tls_cert = "/etc/letsencrypt/darkirc/fullchain.pem"
  9  
 10  ## TLS secret key path if IRC acceptor uses TLS (optional)
 11  #irc_tls_secret = "/etc/letsencrypt/darkirc/privkey.pem"
 12  
 13  ## Sets Datastore Path
 14  #datastore = "~/.local/share/darkfi/darkirc/darkirc_db"
 15  
 16  ## Sets DB logs replay datastore path
 17  #replay_datastore = "~/.local/share/darkfi/darkirc/replayed_darkirc_db"
 18  
 19  ## Run in replay mode to store Sled DB instructions
 20  ## (for eventgraph debugging tool)
 21  #replay_mode = false
 22  
 23  ## List of channels to autojoin for new client connections
 24  autojoin = [
 25      "#dev",
 26      "#media",
 27      "#hackers",
 28      "#memes",
 29      "#philosophy",
 30      "#markets",
 31      "#math",
 32      "#random",
 33      "#lunardao",
 34  ]
 35  
 36  ## IRC server specific password
 37  ## (optional, but once configured, it is required from the IRC client side)
 38  #password = "CHANGE_ME"
 39  
 40  # Log to file. Off by default.
 41  #log = "/tmp/darkirc.log"
 42  # Set log level. 1 is info (default), 2 is debug, 3 is trace
 43  #verbose = 2
 44  
 45  ## JSON-RPC settings
 46  [rpc]
 47  ## JSON-RPC listen URL
 48  rpc_listen = "tcp://127.0.0.1:26660"
 49  
 50  ## Disabled RPC methods
 51  rpc_disabled_methods = ["p2p.get_info"]
 52  
 53  # P2P network settings
 54  [net]
 55  # Path to the P2P datastore
 56  p2p_datastore = "~/.local/share/darkfi/darkirc"
 57  
 58  # Path to a configured hostlist for saving known peers
 59  hostlist = "~/.local/share/darkfi/darkirc/p2p_hostlist.tsv"
 60  
 61  ## P2P accept addresses
 62  #inbound = ["tcp+tls://0.0.0.0:26661", "tcp+tls://[::]:26661"]
 63  #inbound = ["tor://127.0.0.1:26661"]
 64  
 65  ## Outbound connection slots
 66  # outbound_connections = 8
 67  
 68  ## Inbound connection slots
 69  #inbound_connections = 8
 70  
 71  ## White connection percent
 72  # gold_connect_count = 2
 73  
 74  ## White connection percent
 75  # white_connect_percent = 70
 76  
 77  ## Addresses we want to advertise to peers (optional)
 78  ## These should be reachable externally
 79  #external_addrs = ["tcp+tls://my.resolveable.address:26661"]
 80  
 81  ## Seed nodes to connect to 
 82  seeds = [
 83      "tcp+tls://lilith0.dark.fi:25551",
 84      "tcp+tls://lilith1.dark.fi:25551",
 85      #"tor://g7fxelebievvpr27w7gt24lflptpw3jeeuvafovgliq5utdst6xyruyd.onion:25552",
 86      #"tor://yvklzjnfmwxhyodhrkpomawjcdvcaushsj6torjz2gyd7e25f3gfunyd.onion:25552",
 87  ]
 88  
 89  ## Manual peers to connect to
 90  #peers = []
 91  
 92  # Whitelisted transports for outbound connections
 93  allowed_transports = ["tcp+tls"]
 94  #allowed_transports = ["tor"]
 95  #allowed_transports = ["tor", "tor+tls"]
 96  
 97  # Transports you want to be mixed (e.g. Tor would be allowed to connect to `tcp://`
 98  # if tcp is added to mixed_transports and tor is added to allowed_transports)
 99  mixed_transports = []
100  
101  # Tor Socks5 proxy
102  #tor_socks5_proxy = "socks5://127.0.0.1:9050"
103  
104  # Nym Socks5 proxy
105  #nym_socks5_proxy = "socks5://127.0.0.1:1080"
106  
107  # I2p Socks5 proxy
108  #i2p_socks5_proxy = "socks5://127.0.0.1:4447"
109  
110  # Nodes to avoid interacting with for the duration of the program, in the
111  # format ["host", ["scheme", "scheme"], [port, port]].
112  # If scheme is left empty it will default to "tcp+tls". 
113  # If ports are left empty all ports from this peer will be blocked.
114  #blacklist = [["example.com", ["tcp"], [8551, 23331]]]
115  
116  ## ====================
117  ## IRC channel settings
118  ## ====================
119  ##
120  ## You can create a shared secret with `darkirc --gen-secret`.
121  ## Never share this secret over unencrypted channels or with someone
122  ## who you do not want to be able to read all the channel messages.
123  ## Use it like this example:
124  #[channel."#foo"]
125  #secret = "7CkVuFgwTUpJn5Sv67Q3fyEDpa28yrSeL5Hg2GqQ4jfM"
126  #topic = "My secret channel"
127  
128  [channel."#dev"]
129  topic = "DarkFi Development HQ"
130  
131  [channel."#media"]
132  topic = "DarkFi Art, Fashion, Video, Memetics"
133  
134  [channel."#markets"]
135  topic = "Crypto Market Talk"
136  
137  [channel."#math"]
138  topic = "Math Talk"
139  
140  [channel."#memes"]
141  topic = "DarkFi Meme Reality"
142  
143  [channel."#philosophy"]
144  topic = "Philosophy Discussions"
145  
146  [channel."#random"]
147  topic = "/b/"
148  
149  [channel."#lunardao"]
150  topic = "LunarDAO talk"
151  
152  ## ================
153  ## Contact settings
154  ## ================
155  ##
156  ## In this section we configure our contacts and people we want to
157  ## have encrypted DMs with. Whenever something in the configuration
158  ## is changed, you can send a SIGHUP signal to the running darkirc
159  ## instance to reload these.
160  ##
161  ## The format is:
162  ## [contact."nickname"]
163  ## dm_chacha_public = "{the_contact_public_key}"
164  ## my_dm_chacha_secret = "{your_secret_key_for_this_contact}"
165  ##
166  ## "nickname" can be anything you want. This is how they will appear
167  ## in your IRC client when they send you a DM.
168  ##
169  ## "dm_chacha_public" is the contacts' public key, which should be
170  ## retrieved manually.
171  ##
172  ## "my_dm_chacha_secret" is the secret key used to decrypt direct
173  ## messages sent to the public key (the counterpart to this secret key)
174  ## you set for this contact. It is recommended to paste the public key
175  ## here as a comment in order to be able to easily reference it for
176  ## sharing. You can generate a keypair to use for a contact with:
177  ## ./darkirc --gen-chacha-keypair
178  ## Replace the secret key in the contact configuration with the
179  ## generated one. You can generate and set a separate secret key for
180  ## each contact, or reuse the same one in multiple contacts.
181  ## **You should never share secret keys with anyone**
182  ##
183  ## Examples (set as many as you want):
184  #[contact."satoshi"]
185  #dm_chacha_public = "C9vC6HNDfGQofWCapZfQK5MkV1JR8Cct839RDUCqbDGK"
186  #my_dm_chacha_secret = "A3mLrq4aW9UkFVY4zCfR2aLdEEWVUdH4u8v4o2dgi4kC"
187  #
188  #[contact."anon"]
189  #dm_chacha_public = "7iTddcopP2pkvszFjbFUr7MwTcMSKZkYP6zUan22pxfX"
190  #my_dm_chacha_secret = "E229CzXev335cxhHiJyuzSapz7HMfNzf6ipbginFTvtr"