darkirc_config.toml 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. ## This is the darkirc configuration file.
  2. ## Review it carefully.
  3. ## JSON-RPC listen URL
  4. #rpc_listen = "tcp://127.0.0.1:26660"
  5. ## IRC listen URL
  6. #irc_listen = "tcp://127.0.0.1:6667"
  7. ## TLS certificate path if IRC acceptor uses TLS (optional)
  8. #irc_tls_cert = "/etc/letsencrypt/darkirc/fullchain.pem"
  9. ## TLS secret key path if IRC acceptor uses TLS (optional)
  10. #irc_tls_secret = "/etc/letsencrypt/darkirc/privkey.pem"
  11. ## Sets Datastore Path
  12. #datastore = "~/.local/darkfi/darkirc/darkirc_db"
  13. ## Sets DB logs replay datastore path
  14. #replay_datastore = "~/.local/darkfi/darkirc/replayed_darkirc_db"
  15. ## Run in replay mode to store Sled DB instructions
  16. ## (for eventgraph debugging tool)
  17. #replay_mode = false
  18. ## List of channels to autojoin for new client connections
  19. autojoin = [
  20. "#dev",
  21. "#media",
  22. "#memes",
  23. "#philosophy",
  24. "#markets",
  25. "#math",
  26. "#random",
  27. "#lunardao",
  28. ]
  29. ## IRC server specific password
  30. ## (optional, but once configured, it is required from the IRC client side)
  31. #password = "CHANGE_ME"
  32. # Log to file. Off by default.
  33. #log = "/tmp/darkirc.log"
  34. # Set log level. 1 is info (default), 2 is debug, 3 is trace
  35. #verbose = 2
  36. # P2P network settings
  37. [net]
  38. # Path to the P2P datastore
  39. p2p_datastore = "~/.local/darkfi/darkirc"
  40. # Path to a configured hostlist for saving known peers
  41. hostlist = "~/.local/darkfi/darkirc/p2p_hostlist.tsv"
  42. ## P2P accept addresses
  43. #inbound = ["tcp+tls://0.0.0.0:26661", "tcp+tls://[::]:26661"]
  44. #inbound = ["tor://127.0.0.1:26661"]
  45. ## Outbound connection slots
  46. # outbound_connections = 8
  47. ## Inbound connection slots
  48. #inbound_connections = 8
  49. ## White connection percent
  50. # gold_connect_count = 2
  51. ## White connection percent
  52. # white_connect_percent = 70
  53. ## Addresses we want to advertise to peers (optional)
  54. ## These should be reachable externally
  55. #external_addrs = ["tcp+tls://my.resolveable.address:26661"]
  56. ## Seed nodes to connect to
  57. seeds = [
  58. #"tcp+tls://lilith0.dark.fi:5262",
  59. "tcp+tls://lilith1.dark.fi:5262",
  60. #"tor://czzulj66rr5kq3uhidzn7fh4qvt3vaxaoldukuxnl5vipayuj7obo7id.onion:5263",
  61. #"tor://vgbfkcu5hcnlnwd2lz26nfoa6g6quciyxwbftm6ivvrx74yvv5jnaoid.onion:5273",
  62. ]
  63. ## Manual peers to connect to
  64. #peers = []
  65. # Whitelisted transports for outbound connections
  66. allowed_transports = ["tcp+tls"]
  67. #allowed_transports = ["tor"]
  68. #allowed_transports = ["tor", "tor+tls"]
  69. # Enable transport mixing
  70. # Allows mixing transports, e.g. tor+tls:// connecting to tcp+tls://
  71. # By default this is not allowed.
  72. transport_mixing = false
  73. # Nodes to avoid interacting with for the duration of the program, in the
  74. # format ["host", ["scheme", "scheme"], [port, port]].
  75. # If scheme is left empty it will default to "tcp+tls".
  76. # If ports are left empty all ports from this peer will be blocked.
  77. #blacklist = [["example.com", ["tcp"], [8551, 23331]]]
  78. ## ====================
  79. ## IRC channel settings
  80. ## ====================
  81. ##
  82. ## You can create a shared secret with `darkirc --gen-secret`.
  83. ## Never share this secret over unencrypted channels or with someone
  84. ## who you do not want to be able to read all the channel messages.
  85. ## Use it like this example:
  86. #[channel."#foo"]
  87. #secret = "7CkVuFgwTUpJn5Sv67Q3fyEDpa28yrSeL5Hg2GqQ4jfM"
  88. #topic = "My secret channel"
  89. [channel."#dev"]
  90. topic = "DarkFi Development HQ"
  91. [channel."#media"]
  92. topic = "DarkFi Art, Fashion, Video, Memetics"
  93. [channel."#markets"]
  94. topic = "Crypto Market Talk"
  95. [channel."#math"]
  96. topic = "Math Talk"
  97. [channel."#memes"]
  98. topic = "DarkFi Meme Reality"
  99. [channel."#philosophy"]
  100. topic = "Philosophy Discussions"
  101. [channel."#random"]
  102. topic = "/b/"
  103. [channel."#lunardao"]
  104. topic = "LunarDAO talk"
  105. ## ================
  106. ## Contact settings
  107. ## ================
  108. ##
  109. ## In this section we configure our contacts and people we want to
  110. ## have encrypted DMs with. Your contacts' public keys should be
  111. ## retrieved manually. Whenever this is changed, you can send a
  112. ## SIGHUP signal to the running darkirc instance to reload these.
  113. ##
  114. ## The secret key used to decrypt direct messages sent to your public
  115. ## key (the counterpart to this secret key).
  116. ## It is also recommended to paste the public key here as a comment in
  117. ## order to be able to easily reference it for sharing.
  118. ##
  119. ## You can generate a keypair with: darkirc --gen-chacha-keypair
  120. ## and replace the secret key below with the generated one.
  121. ## **You should never share this secret key with anyone**
  122. #[crypto]
  123. #dm_chacha_secret = "AKfyoKxnHb8smqP2zt9BVvXkcN7pm9GnqqyuYRmxmWtR"
  124. ## This is where you put other people's public keys. The format is:
  125. ## [contact."nickname"]. "nickname" can be anything you want.
  126. ## This is how they will appear in your IRC client when they send you a DM.
  127. ##
  128. ## Example (set as many as you want):
  129. #[contact."satoshi"]
  130. #dm_chacha_public = "C9vC6HNDfGQofWCapZfQK5MkV1JR8Cct839RDUCqbDGK"
  131. #
  132. #[contact."anon"]
  133. #dm_chacha_public = "7iTddcopP2pkvszFjbFUr7MwTcMSKZkYP6zUan22pxfX"