darkirc_config.toml 5.2 KB

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