darkirc_config.toml 5.5 KB

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