darkirc_config.toml 8.0 KB

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