darkirc_config.toml 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  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. ]
  27. ## IRC server specific password
  28. ## (optional, but once configured, it is required from the IRC client side)
  29. #password = "CHANGE_ME"
  30. ## Number of attempts to sync the DAG.
  31. #sync_attempts = 5
  32. ## Number of seconds to wait before trying again if sync fails.
  33. #sync_timeout = 10
  34. # Log to file. Off by default.
  35. #log = "/tmp/darkirc.log"
  36. # Set log level. 1 is info (default), 2 is debug, 3 is trace
  37. #verbose = 2
  38. # P2P network settings
  39. [net]
  40. # Path to the P2P datastore
  41. datastore = "~/.local/darkfi/darkirc"
  42. # Path to a configured hostlist for saving known peers
  43. hostlist = "~/.local/darkfi/darkirc/p2p_hostlist.tsv"
  44. ## P2P accept addresses
  45. #inbound = ["tcp+tls://0.0.0.0:26661", "tcp+tls://[::]:26661"]
  46. #inbound = ["tor://127.0.0.1:26661"]
  47. ## Outbound connection slots
  48. # outbound_connections = 8
  49. ## Inbound connection slots
  50. #inbound_connections = 8
  51. ## White connection percent
  52. # gold_connect_count = 2
  53. ## White connection percent
  54. # white_connect_percent = 70
  55. ## Addresses we want to advertise to peers (optional)
  56. ## These should be reachable externally
  57. #external_addrs = ["tcp+tls://my.resolveable.address:26661"]
  58. ## Seed nodes to connect to
  59. seeds = [
  60. #"tcp+tls://lilith0.dark.fi:5262",
  61. "tcp+tls://lilith1.dark.fi:5262",
  62. #"tor://czzulj66rr5kq3uhidzn7fh4qvt3vaxaoldukuxnl5vipayuj7obo7id.onion:5263",
  63. ]
  64. ## Manual peers to connect to
  65. #peers = []
  66. # Whitelisted transports for outbound connections
  67. allowed_transports = ["tcp+tls"]
  68. #allowed_transports = ["tor"]
  69. #allowed_transports = ["tor", "tor+tls"]
  70. # Enable transport mixing
  71. # Allows mixing transports, e.g. tor+tls:// connecting to tcp+tls://
  72. # By default this is not allowed.
  73. transport_mixing = false
  74. # Nodes to avoid interacting with for the duration of the program, in the
  75. # format ["host", ["scheme", "scheme"], [port, port]].
  76. # If scheme is left empty it will default to "tcp+tls".
  77. # If ports are left empty all ports from this peer will be blocked.
  78. #blacklist = [["example.com", ["tcp"], [8551, 23331]]]
  79. ## ====================
  80. ## IRC channel settings
  81. ## ====================
  82. ##
  83. ## You can create a shared secret with `darkirc --gen-secret`.
  84. ## Never share this secret over unencrypted channels or with someone
  85. ## who you do not want to be able to read all the channel messages.
  86. ## Use it like this example:
  87. #[channel."#foo"]
  88. #secret = "7CkVuFgwTUpJn5Sv67Q3fyEDpa28yrSeL5Hg2GqQ4jfM"
  89. #topic = "My secret channel"
  90. [channel."#dev"]
  91. topic = "DarkFi Development HQ"
  92. [channel."#markets"]
  93. topic = "Crypto Market Talk"
  94. [channel."#math"]
  95. topic = "Math Talk"
  96. [channel."#memes"]
  97. topic = "DarkFi Meme Reality"
  98. [channel."#philosophy"]
  99. topic = "Philosophy Discussions"
  100. [channel."#random"]
  101. topic = "/b/"
  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"