darkirc_config.toml 4.8 KB

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