darkirc_config.toml 4.1 KB

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