darkirc_config.toml 5.3 KB

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