darkirc_config.toml 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  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. ## P2P accept addresses
  50. #inbound = ["tcp+tls://0.0.0.0:26661", "tcp+tls://[::]:26661"]
  51. #inbound = ["tor://127.0.0.1:26661"]
  52. ## Outbound connection slots
  53. # outbound_connections = 8
  54. ## Inbound connection slots
  55. #inbound_connections = 8
  56. ## White connection percent
  57. # gold_connect_count = 2
  58. ## White connection percent
  59. # white_connect_percent = 70
  60. ## Addresses we want to advertise to peers (optional)
  61. ## These should be reachable externally
  62. #external_addrs = ["tcp+tls://my.resolveable.address:26661"]
  63. ## Seed nodes to connect to
  64. seeds = [
  65. "tcp+tls://lilith0.dark.fi:25551",
  66. "tcp+tls://lilith1.dark.fi:25551",
  67. #"tor://g7fxelebievvpr27w7gt24lflptpw3jeeuvafovgliq5utdst6xyruyd.onion:25552",
  68. #"tor://yvklzjnfmwxhyodhrkpomawjcdvcaushsj6torjz2gyd7e25f3gfunyd.onion:25552",
  69. ]
  70. ## Manual peers to connect to
  71. #peers = []
  72. # Whitelisted transports for outbound connections
  73. allowed_transports = ["tcp+tls"]
  74. #allowed_transports = ["tor"]
  75. #allowed_transports = ["tor", "tor+tls"]
  76. # Transports you want to be mixed (e.g. Tor would be allowed to connect to `tcp://`
  77. # if tcp is added to mixed_transports and tor is added to allowed_transports)
  78. mixed_transports = []
  79. # Tor Socks5 proxy
  80. #tor_socks5_proxy = "socks5://127.0.0.1:9050"
  81. # Nym Socks5 proxy
  82. #nym_socks5_proxy = "socks5://127.0.0.1:1080"
  83. # I2p Socks5 proxy
  84. #i2p_socks5_proxy = "socks5://127.0.0.1:4447"
  85. # Nodes to avoid interacting with for the duration of the program, in the
  86. # format ["host", ["scheme", "scheme"], [port, port]].
  87. # If scheme is left empty it will default to "tcp+tls".
  88. # If ports are left empty all ports from this peer will be blocked.
  89. #blacklist = [["example.com", ["tcp"], [8551, 23331]]]
  90. ## ====================
  91. ## IRC channel settings
  92. ## ====================
  93. ##
  94. ## You can create a shared secret with `darkirc --gen-secret`.
  95. ## Never share this secret over unencrypted channels or with someone
  96. ## who you do not want to be able to read all the channel messages.
  97. ## Use it like this example:
  98. #[channel."#foo"]
  99. #secret = "7CkVuFgwTUpJn5Sv67Q3fyEDpa28yrSeL5Hg2GqQ4jfM"
  100. #topic = "My secret channel"
  101. [channel."#dev"]
  102. topic = "DarkFi Development HQ"
  103. [channel."#media"]
  104. topic = "DarkFi Art, Fashion, Video, Memetics"
  105. [channel."#markets"]
  106. topic = "Crypto Market Talk"
  107. [channel."#math"]
  108. topic = "Math Talk"
  109. [channel."#memes"]
  110. topic = "DarkFi Meme Reality"
  111. [channel."#philosophy"]
  112. topic = "Philosophy Discussions"
  113. [channel."#random"]
  114. topic = "/b/"
  115. [channel."#lunardao"]
  116. topic = "LunarDAO talk"
  117. ## ================
  118. ## Contact settings
  119. ## ================
  120. ##
  121. ## In this section we configure our contacts and people we want to
  122. ## have encrypted DMs with. Whenever something in the configuration
  123. ## is changed, you can send a SIGHUP signal to the running darkirc
  124. ## instance to reload these.
  125. ##
  126. ## The format is:
  127. ## [contact."nickname"]
  128. ## dm_chacha_public = "{the_contact_public_key}"
  129. ## my_dm_chacha_secret = "{your_secret_key_for_this_contact}"
  130. ##
  131. ## "nickname" can be anything you want. This is how they will appear
  132. ## in your IRC client when they send you a DM.
  133. ##
  134. ## "dm_chacha_public" is the contacts' public key, which should be
  135. ## retrieved manually.
  136. ##
  137. ## "my_dm_chacha_secret" is the secret key used to decrypt direct
  138. ## messages sent to the public key (the counterpart to this secret key)
  139. ## you set for this contact. It is recommended to paste the public key
  140. ## here as a comment in order to be able to easily reference it for
  141. ## sharing. You can generate a keypair to use for a contact with:
  142. ## ./darkirc --gen-chacha-keypair
  143. ## Replace the secret key in the contact configuration with the
  144. ## generated one. You can generate and set a separate secret key for
  145. ## each contact, or reuse the same one in multiple contacts.
  146. ## **You should never share secret keys with anyone**
  147. ##
  148. ## Examples (set as many as you want):
  149. #[contact."satoshi"]
  150. #dm_chacha_public = "C9vC6HNDfGQofWCapZfQK5MkV1JR8Cct839RDUCqbDGK"
  151. #my_dm_chacha_secret = "A3mLrq4aW9UkFVY4zCfR2aLdEEWVUdH4u8v4o2dgi4kC"
  152. #
  153. #[contact."anon"]
  154. #dm_chacha_public = "7iTddcopP2pkvszFjbFUr7MwTcMSKZkYP6zUan22pxfX"
  155. #my_dm_chacha_secret = "E229CzXev335cxhHiJyuzSapz7HMfNzf6ipbginFTvtr"