darkirc_config.toml 7.6 KB

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