darkirc_config.toml 4.0 KB

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