darkirc_config.toml 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  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_db"
  13. ## Sets DB logs replay datastore path
  14. #replay_datastore = "~/.local/darkfi/replayed_darkirc_db"
  15. ## List of channels to autojoin for new client connections
  16. autojoin = [
  17. "#dev",
  18. "#memes",
  19. "#philosophy",
  20. "#markets",
  21. "#math",
  22. "#random",
  23. ]
  24. ## IRC server specific password
  25. ## (optional, but once configured, it is required from the IRC client side)
  26. #password = "CHANGE_ME"
  27. ## Number of attempts to sync the DAG.
  28. #sync_attempts = 5
  29. ## Number of seconds to wait before trying again if sync fails.
  30. #sync_timeout = 10
  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 a configured hostlist for saving known peers
  38. hostlist = "~/.local/darkfi/darkirc/hostlist.tsv"
  39. ## P2P accept addresses
  40. #inbound = ["tcp+tls://0.0.0.0:26661", "tcp+tls://[::]:26661"]
  41. ## Outbound connection slots
  42. # outbound_connections = 8
  43. ## Inbound connection slots
  44. #inbound_connections = 8
  45. ## White connection percent
  46. # gold_connect_count = 2
  47. ## White connection percent
  48. # white_connect_percent = 70
  49. ## Addresses we want to advertise to peers (optional)
  50. ## These should be reachable externally
  51. #external_addrs = ["tcp+tls://my.resolveable.address:26661"]
  52. ## Seed nodes to connect to
  53. seeds = [
  54. #"tcp+tls://lilith0.dark.fi:5262",
  55. "tcp+tls://lilith1.dark.fi:5262",
  56. #"tor://rwjgdy7bs4e3eamgltccea7p5yzz3alfi2vps2xefnihurbmpd3b7hqd.onion:5262",
  57. #"tor://f5mldz3utfrj5esn7vy7osa6itusotix6nsjhv4uirshkcvgglb3xdqd.onion:5262",
  58. ]
  59. ## Manual peers to connect to
  60. #peers = []
  61. # Whitelisted transports for outbound connections
  62. allowed_transports = ["tcp+tls"]
  63. #allowed_transports = ["tor"]
  64. # Enable transport mixing
  65. # Allows mixing transports, e.g. tor+tls:// connecting to tcp+tls://
  66. # By default this is not allowed.
  67. transport_mixing = false
  68. ## ====================
  69. ## IRC channel settings
  70. ## ====================
  71. ##
  72. ## You can create a shared secret with `darkirc --gen-secret`.
  73. ## Never share this secret over unencrypted channels or with someone
  74. ## who you do not want to be able to read all the channel messages.
  75. ## Use it like this example:
  76. #[channel."#foo"]
  77. #secret = "7CkVuFgwTUpJn5Sv67Q3fyEDpa28yrSeL5Hg2GqQ4jfM"
  78. #topic = "My secret channel"
  79. [channel."#dev"]
  80. topic = "DarkFi Development HQ"
  81. [channel."#markets"]
  82. topic = "Crypto Market Talk"
  83. [channel."#math"]
  84. topic = "Math Talk"
  85. [channel."#memes"]
  86. topic = "DarkFi Meme Reality"
  87. [channel."#philosophy"]
  88. topic = "Philosophy Discussions"
  89. [channel."#random"]
  90. topic = "/b/"
  91. ## ================
  92. ## Contact settings
  93. ## ================
  94. ##
  95. ## In this section we configure our contacts and people we want to
  96. ## have encrypted DMs with. Your contacts' public keys should be
  97. ## retrieved manually. Whenever this is changed, you can send a
  98. ## SIGHUP signal to the running darkirc instance to reload these.
  99. ##
  100. ## The secret key used to decrypt direct messages sent to your public
  101. ## key (the counterpart to this secret key).
  102. ## It is also recommended to paste the public key here as a comment in
  103. ## order to be able to easily reference it for sharing.
  104. ##
  105. ## You can generate a keypair with: darkirc --gen-chacha-keypair
  106. ## and replace the secret key below with the generated one.
  107. ## **You should never share this secret key with anyone**
  108. #[crypto]
  109. #dm_chacha_secret = "AKfyoKxnHb8smqP2zt9BVvXkcN7pm9GnqqyuYRmxmWtR"
  110. ## This is where you put other people's public keys. The format is:
  111. ## [contact."nickname"]. "nickname" can be anything you want.
  112. ## This is how they will appear in your IRC client when they send you a DM.
  113. ##
  114. ## Example (set as many as you want):
  115. #[contact."satoshi"]
  116. #dm_chacha_public = "C9vC6HNDfGQofWCapZfQK5MkV1JR8Cct839RDUCqbDGK"
  117. #
  118. #[contact."anon"]
  119. #dm_chacha_public = "7iTddcopP2pkvszFjbFUr7MwTcMSKZkYP6zUan22pxfX"