darkirc_config.toml 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  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. # Enable transport mixing
  75. # Allows mixing transports, e.g. tor+tls:// connecting to tcp+tls://
  76. # By default this is not allowed.
  77. transport_mixing = false
  78. # Tor Socks5 proxy
  79. #tor_socks5_proxy = "socks5://127.0.0.1:9050"
  80. # I2p Socks5 proxy
  81. #i2p_socks5_proxy = "socks5://127.0.0.1:4447"
  82. # Nodes to avoid interacting with for the duration of the program, in the
  83. # format ["host", ["scheme", "scheme"], [port, port]].
  84. # If scheme is left empty it will default to "tcp+tls".
  85. # If ports are left empty all ports from this peer will be blocked.
  86. #blacklist = [["example.com", ["tcp"], [8551, 23331]]]
  87. ## ====================
  88. ## IRC channel settings
  89. ## ====================
  90. ##
  91. ## You can create a shared secret with `darkirc --gen-secret`.
  92. ## Never share this secret over unencrypted channels or with someone
  93. ## who you do not want to be able to read all the channel messages.
  94. ## Use it like this example:
  95. #[channel."#foo"]
  96. #secret = "7CkVuFgwTUpJn5Sv67Q3fyEDpa28yrSeL5Hg2GqQ4jfM"
  97. #topic = "My secret channel"
  98. [channel."#dev"]
  99. topic = "DarkFi Development HQ"
  100. [channel."#media"]
  101. topic = "DarkFi Art, Fashion, Video, Memetics"
  102. [channel."#markets"]
  103. topic = "Crypto Market Talk"
  104. [channel."#math"]
  105. topic = "Math Talk"
  106. [channel."#memes"]
  107. topic = "DarkFi Meme Reality"
  108. [channel."#philosophy"]
  109. topic = "Philosophy Discussions"
  110. [channel."#random"]
  111. topic = "/b/"
  112. [channel."#lunardao"]
  113. topic = "LunarDAO talk"
  114. ## ================
  115. ## Contact settings
  116. ## ================
  117. ##
  118. ## In this section we configure our contacts and people we want to
  119. ## have encrypted DMs with. Whenever something in the configuration
  120. ## is changed, you can send a SIGHUP signal to the running darkirc
  121. ## instance to reload these.
  122. ##
  123. ## The format is:
  124. ## [contact."nickname"]
  125. ## dm_chacha_public = "{the_contact_public_key}"
  126. ## my_dm_chacha_secret = "{your_secret_key_for_this_contact}"
  127. ##
  128. ## "nickname" can be anything you want. This is how they will appear
  129. ## in your IRC client when they send you a DM.
  130. ##
  131. ## "dm_chacha_public" is the contacts' public key, which should be
  132. ## retrieved manually.
  133. ##
  134. ## "my_dm_chacha_secret" is the secret key used to decrypt direct
  135. ## messages sent to the public key (the counterpart to this secret key)
  136. ## you set for this contact. It is recommended to paste the public key
  137. ## here as a comment in order to be able to easily reference it for
  138. ## sharing. You can generate a keypair to use for a contact with:
  139. ## ./darkirc --gen-chacha-keypair
  140. ## Replace the secret key in the contact configuration with the
  141. ## generated one. You can generate and set a separate secret key for
  142. ## each contact, or reuse the same one in multiple contacts.
  143. ## **You should never share secret keys with anyone**
  144. ##
  145. ## Examples (set as many as you want):
  146. #[contact."satoshi"]
  147. #dm_chacha_public = "C9vC6HNDfGQofWCapZfQK5MkV1JR8Cct839RDUCqbDGK"
  148. #my_dm_chacha_secret = "A3mLrq4aW9UkFVY4zCfR2aLdEEWVUdH4u8v4o2dgi4kC"
  149. #
  150. #[contact."anon"]
  151. #dm_chacha_public = "7iTddcopP2pkvszFjbFUr7MwTcMSKZkYP6zUan22pxfX"
  152. #my_dm_chacha_secret = "E229CzXev335cxhHiJyuzSapz7HMfNzf6ipbginFTvtr"