darkirc_config.toml 5.3 KB

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