darkirc_config.toml 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287
  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 = 24
  13. ## Archive mode never prunes rotating DAGs. Storage use grows for as long as
  14. ## the node runs. history_retention_dags is ignored when this is enabled.
  15. #archive_mode = false
  16. ## How many rotating DAGs a normal node retains locally. This controls how
  17. ## much history the node can serve or lazily sync before old DAGs are pruned.
  18. #history_retention_dags = 24
  19. ## Sets Datastore Path
  20. #datastore = "~/.local/share/darkfi/darkirc/darkirc_db"
  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. ## Sets DB logs replay datastore path
  27. #replay_datastore = "~/.local/share/darkfi/darkirc/replayed_darkirc_db"
  28. ## Run in replay mode to store KVDB instructions
  29. ## (for eventgraph debugging tool)
  30. #replay_mode = false
  31. ## List of channels to autojoin for new client connections
  32. autojoin = [
  33. "#dev",
  34. "#media",
  35. "#hackers",
  36. "#memes",
  37. "#philosophy",
  38. "#markets",
  39. "#math",
  40. "#random",
  41. "#lunardao",
  42. ]
  43. ## IRC server specific password
  44. ## (optional, but once configured, it is required from the IRC client side)
  45. #password = "CHANGE_ME"
  46. # Log to file. Off by default.
  47. #log = "/tmp/darkirc.log"
  48. # Set log level. 1 is info (default), 2 is debug, 3 is trace
  49. #verbose = 2
  50. ## Running darkirc in header-only mode
  51. ## history won't be fetched but DAG sync fast
  52. #fast_mode = false
  53. ## JSON-RPC settings
  54. [rpc]
  55. ## JSON-RPC listen URL
  56. rpc_listen = ["tcp://127.0.0.1:9605"]
  57. ## Disabled RPC methods
  58. rpc_disabled_methods = ["p2p.get_info"]
  59. # P2P network settings
  60. [net]
  61. # Magic Bytes to distinguish the p2p network
  62. magic_bytes = [251, 229, 199, 181]
  63. # Path to the P2P datastore
  64. p2p_datastore = "~/.local/share/darkfi/darkirc/p2p"
  65. # Path to a configured hostlist for saving known peers
  66. hostlist = "~/.local/share/darkfi/darkirc/p2p_hostlist.tsv"
  67. ## Outbound connection slots
  68. # outbound_connections = 8
  69. ## Inbound connection slots
  70. #inbound_connections = 8
  71. ## White connection percent
  72. # gold_connect_count = 2
  73. ## White connection percent
  74. # white_connect_percent = 70
  75. # Nodes to avoid interacting with for the duration of the program, in the
  76. # format ["host", ["scheme", "scheme"], [port, port]].
  77. # If scheme is left empty it will default to "tcp+tls".
  78. # If ports are left empty all ports from this peer will be blocked.
  79. #blacklist = [["example.com", ["tcp"], [8551, 23331]]]
  80. # Transports this node can dial. Leave tcp and tcp+tls out when direct
  81. # clearnet connections are not permitted.
  82. active_profiles = ["tor"]
  83. #active_profiles = ["tcp+tls"]
  84. # Canonical peer schemes that may be reached through a compatible active
  85. # transport. For example, route learned tcp and tcp+tls peers through Tor with:
  86. #active_profiles = ["tor", "tor+tls"]
  87. #mixed_profiles = ["tcp", "tcp+tls"]
  88. # Keep bootstrap seeds under the active tor and tor+tls profile tables below.
  89. #mixed_profiles = []
  90. # Tor Socks5 proxy
  91. #tor_socks5_proxy = "socks5://127.0.0.1:9050"
  92. # Nym Socks5 proxy
  93. #nym_socks5_proxy = "socks5://127.0.0.1:1080"
  94. # I2p Socks5 proxy
  95. #i2p_socks5_proxy = "socks5://127.0.0.1:4447"
  96. [net.profiles."tcp+tls"]
  97. ## Seed nodes to connect to
  98. seeds = ["tcp+tls://lilith0.dark.fi:9600", "tcp+tls://lilith1.dark.fi:9600"]
  99. ## Manual peers to connect to
  100. #peers = []
  101. ## P2P accept addresses
  102. #inbound = ["tcp+tls://0.0.0.0:9600", "tcp+tls://[::]:9600"]
  103. ## Addresses we want to advertise to peers (optional)
  104. ## These should be reachable externally
  105. #external_addrs = ["tcp+tls://my.resolveable.address:9600"]
  106. [net.profiles."tor"]
  107. ## Seed nodes to connect to
  108. seeds = [
  109. "tor://wgxxaifz5gv4iggcflyl67lgmsihffs6bbwobqah4np52t3y3olrnpid.onion:9601",
  110. "tor://inx5s3pdzddvgb5ii3oydutmbvw6fvor3oqu65wtxl3pyevtvrdn4had.onion:9601",
  111. ]
  112. ## Manual peers to connect to
  113. #peers = []
  114. ## P2P accept addresses
  115. #inbound = ["tor://127.0.0.1:9601"]
  116. [net.profiles."i2p"]
  117. ## Seed nodes to connect to
  118. seeds = [
  119. ##TODO: replace with an official seed address
  120. "i2p://6l2rdfriixo2nh5pr5bt555lyz56qox2ikzia4kuzm4okje7gtmq.b32.i2p:9602"
  121. ]
  122. ## Manual peers to connect to
  123. #peers = []
  124. ## P2P accept addresses
  125. #inbound = ["tcp://127.0.0.1:9602"]
  126. ## Addresses we want to advertise to peers (optional)
  127. ## These should be reachable externally
  128. #external_addrs = ["i2p://youraddress.b32.i2p:9602"]
  129. [net.profiles."socks5"]
  130. ## Seed nodes to connect to
  131. seeds = [
  132. "socks5://127.0.0.1:9050/wgxxaifz5gv4iggcflyl67lgmsihffs6bbwobqah4np52t3y3olrnpid.onion:9601",
  133. "socks5://127.0.0.1:9050/inx5s3pdzddvgb5ii3oydutmbvw6fvor3oqu65wtxl3pyevtvrdn4had.onion:9601",
  134. ]
  135. ## Manual peers to connect to
  136. #peers = []
  137. [net.profiles."socks5+tls"]
  138. ## Seed nodes to connect to
  139. seeds = [
  140. #"socks5+tls://127.0.0.1:9050/lilith0.dark.fi:9600",
  141. #"socks5+tls://127.0.0.1:1080/lilith1.dark.fi:9600"
  142. ]
  143. ## Manual peers to connect to
  144. #peers = []
  145. [net.profiles."tor+tls"]
  146. ## Seed nodes to connect to
  147. seeds = [
  148. "tor+tls://lilith0.dark.fi:9600",
  149. "tor+tls://lilith1.dark.fi:9600"
  150. ]
  151. ## Manual peers to connect to
  152. #peers = []
  153. [net.profiles."tcp"]
  154. ## Seed nodes to connect to
  155. #seeds = ["tcp://127.0.0.1:9600"]
  156. ## Manual peers to connect to
  157. #peers = []
  158. ## P2P accept addresses
  159. #inbound = ["tcp://127.0.0.1:9600"]
  160. ## Addresses we want to advertise to peers
  161. #external_addrs = ["tcp://127.0.0.1:9600"]
  162. ## ====================
  163. ## IRC channel settings
  164. ## ====================
  165. ##
  166. ## You can create a shared secret with `darkirc --gen-channel-secret`.
  167. ## Never share this secret over unencrypted channels or with someone
  168. ## who you do not want to be able to read all the channel messages.
  169. ## Use it like this example:
  170. #[channel."#foo"]
  171. #secret = "7CkVuFgwTUpJn5Sv67Q3fyEDpa28yrSeL5Hg2GqQ4jfM"
  172. #topic = "My secret channel"
  173. [channel."#dev"]
  174. topic = "DarkFi Development HQ"
  175. [channel."#media"]
  176. topic = "DarkFi Art, Fashion, Video, Memetics"
  177. [channel."#markets"]
  178. topic = "Crypto Market Talk"
  179. [channel."#math"]
  180. topic = "Math Talk"
  181. [channel."#memes"]
  182. topic = "DarkFi Meme Reality"
  183. [channel."#philosophy"]
  184. topic = "Philosophy Discussions"
  185. [channel."#random"]
  186. topic = "/b/"
  187. [channel."#lunardao"]
  188. topic = "LunarDAO talk"
  189. ## ================
  190. ## Contact settings
  191. ## ================
  192. ##
  193. ## In this section we configure our contacts and people we want to
  194. ## have encrypted DMs with. After changing contacts, send /rehash from
  195. ## an IRC client (or restart darkirc) to reload them.
  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"