darkirc_config.toml 7.1 KB

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