darkirc_config.toml 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  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. "#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. # P2P network settings
  36. [net]
  37. # Path to the P2P datastore
  38. datastore = "~/.local/darkfi/darkirc"
  39. # Path to a configured hostlist for saving known peers
  40. hostlist = "~/.local/darkfi/darkirc/p2p_hostlist.tsv"
  41. ## P2P accept addresses
  42. #inbound = ["tcp+tls://0.0.0.0:26661", "tcp+tls://[::]:26661"]
  43. #inbound = ["tor://127.0.0.1:26661"]
  44. ## Outbound connection slots
  45. # outbound_connections = 8
  46. ## Inbound connection slots
  47. #inbound_connections = 8
  48. ## White connection percent
  49. # gold_connect_count = 2
  50. ## White connection percent
  51. # white_connect_percent = 70
  52. ## Addresses we want to advertise to peers (optional)
  53. ## These should be reachable externally
  54. #external_addrs = ["tcp+tls://my.resolveable.address:26661"]
  55. ## Seed nodes to connect to
  56. seeds = [
  57. #"tcp+tls://lilith0.dark.fi:5262",
  58. "tcp+tls://lilith1.dark.fi:5262",
  59. #"tor://czzulj66rr5kq3uhidzn7fh4qvt3vaxaoldukuxnl5vipayuj7obo7id.onion:5263",
  60. #"tor://vgbfkcu5hcnlnwd2lz26nfoa6g6quciyxwbftm6ivvrx74yvv5jnaoid.onion:5273",
  61. ]
  62. ## Manual peers to connect to
  63. #peers = []
  64. # Whitelisted transports for outbound connections
  65. allowed_transports = ["tcp+tls"]
  66. #allowed_transports = ["tor"]
  67. #allowed_transports = ["tor", "tor+tls"]
  68. # Enable transport mixing
  69. # Allows mixing transports, e.g. tor+tls:// connecting to tcp+tls://
  70. # By default this is not allowed.
  71. transport_mixing = false
  72. # Nodes to avoid interacting with for the duration of the program, in the
  73. # format ["host", ["scheme", "scheme"], [port, port]].
  74. # If scheme is left empty it will default to "tcp+tls".
  75. # If ports are left empty all ports from this peer will be blocked.
  76. #blacklist = [["example.com", ["tcp"], [8551, 23331]]]
  77. ## ====================
  78. ## IRC channel settings
  79. ## ====================
  80. ##
  81. ## You can create a shared secret with `darkirc --gen-secret`.
  82. ## Never share this secret over unencrypted channels or with someone
  83. ## who you do not want to be able to read all the channel messages.
  84. ## Use it like this example:
  85. #[channel."#foo"]
  86. #secret = "7CkVuFgwTUpJn5Sv67Q3fyEDpa28yrSeL5Hg2GqQ4jfM"
  87. #topic = "My secret channel"
  88. [channel."#dev"]
  89. topic = "DarkFi Development HQ"
  90. [channel."#markets"]
  91. topic = "Crypto Market Talk"
  92. [channel."#math"]
  93. topic = "Math Talk"
  94. [channel."#memes"]
  95. topic = "DarkFi Meme Reality"
  96. [channel."#philosophy"]
  97. topic = "Philosophy Discussions"
  98. [channel."#random"]
  99. topic = "/b/"
  100. [channel."#lunardao"]
  101. topic = "LunarDAO talk"
  102. ## ================
  103. ## Contact settings
  104. ## ================
  105. ##
  106. ## In this section we configure our contacts and people we want to
  107. ## have encrypted DMs with. Your contacts' public keys should be
  108. ## retrieved manually. Whenever this is changed, you can send a
  109. ## SIGHUP signal to the running darkirc instance to reload these.
  110. ##
  111. ## The secret key used to decrypt direct messages sent to your public
  112. ## key (the counterpart to this secret key).
  113. ## It is also recommended to paste the public key here as a comment in
  114. ## order to be able to easily reference it for sharing.
  115. ##
  116. ## You can generate a keypair with: darkirc --gen-chacha-keypair
  117. ## and replace the secret key below with the generated one.
  118. ## **You should never share this secret key with anyone**
  119. #[crypto]
  120. #dm_chacha_secret = "AKfyoKxnHb8smqP2zt9BVvXkcN7pm9GnqqyuYRmxmWtR"
  121. ## This is where you put other people's public keys. The format is:
  122. ## [contact."nickname"]. "nickname" can be anything you want.
  123. ## This is how they will appear in your IRC client when they send you a DM.
  124. ##
  125. ## Example (set as many as you want):
  126. #[contact."satoshi"]
  127. #dm_chacha_public = "C9vC6HNDfGQofWCapZfQK5MkV1JR8Cct839RDUCqbDGK"
  128. #
  129. #[contact."anon"]
  130. #dm_chacha_public = "7iTddcopP2pkvszFjbFUr7MwTcMSKZkYP6zUan22pxfX"