darkirc_config.toml 7.8 KB

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