darkirc_config.toml 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  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/ircd/fullchain.pem"
  9. ## TLS secret key path if IRC acceptor uses TLS (optional)
  10. #irc_tls_secret = "/etc/letsencrypt/ircd/privkey.pem"
  11. ## Sets Datastore Path
  12. #datastore = "~/.darkirc"
  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. ## Daemon specific password (optional, but once you configure it,
  23. ## it is required from the client side)
  24. #password="CHANGE_ME"
  25. # P2P network settings
  26. [net]
  27. ## P2P accept addresses
  28. #inbound = ["tcp+tls://0.0.0.0:26661", "tcp+tls://[::]:26661"]
  29. ## Connection slots
  30. outbound_connections = 8
  31. ## Addresses we want to advertise to peers (optional)
  32. ## These should be reachable externally
  33. #external_addrs = ["tcp+tls://my.resolveable.address:26661"]
  34. ## Seed nodes to connect to
  35. seeds = [
  36. "tcp+tls://lilith0.dark.fi:5262",
  37. "tcp+tls://lilith1.dark.fi:5262",
  38. ]
  39. # Whitelisted transports for outbound connections
  40. allowed_transports = ["tcp+tls"]
  41. # Enable transport mixing
  42. # Allows mixing transports, e.g. tor+tls:// connecting to tcp+tls://
  43. # By default this is not allowed.
  44. transport_mixing = false
  45. ## ====================
  46. ## IRC channel settings
  47. ## ====================
  48. ##
  49. ## You can create a shared secret with `darkirc --gen-secret`.
  50. ## Never share this secret over unencrypted channels or with someone
  51. ## who you do not want to be able to read all the channel messages.
  52. ## Use it like this example:
  53. #[channel."#foo"]
  54. #secret = "7CkVuFgwTUpJn5Sv67Q3fyEDpa28yrSeL5Hg2GqQ4jfM"
  55. #topic = "My secret channel"
  56. [channel."#dev"]
  57. topic = "DarkFi Development HQ"
  58. [channel."#markets"]
  59. topic = "Crypto Market Talk"
  60. [channel."#math"]
  61. topic = "Math Talk"
  62. [channel."#memes"]
  63. topic = "DarkFi Meme Reality"
  64. [channel."#philosophy"]
  65. topic = "Philosophy Discussions"
  66. [channel."#random"]
  67. topic = "/b/"
  68. ## ================
  69. ## Contact settings
  70. ## ================
  71. ##
  72. ## In this section we configure our contacts and people we want to
  73. ## have encrypted DMs with. Your contacts' public keys should be
  74. ## retrieved manually. Whenever this is changed, you can send a
  75. ## SIGHUP signal to the running darkirc instance to reload these.
  76. ##
  77. ## The secret key used to decrypt direct messages sent to your public
  78. ## key (the counterpart to this secret key).
  79. ## It is also recommended to paste the public key here as a comment in
  80. ## order to be able to easily reference it for sharing.
  81. ##
  82. ## You can generate a keypair with: darkirc --gen-keypair
  83. ## and replace the secret key below with the generated one.
  84. ## **You should never share this secret key with anyone**
  85. #[secret_key."AKfyoKxnHb8smqP2zt9BVvXkcN7pm9GnqqyuYRmxmWtR"]
  86. ## This is where you put other people's public keys. The format is:
  87. ## [contact."nickname"]. "nickname" can be anything you want.
  88. ## This is how they will appear in your IRC client when they send you a DM.
  89. ##
  90. ## Example (set as many as you want):
  91. #[contact."satoshi"]
  92. #public_key = "C9vC6HNDfGQofWCapZfQK5MkV1JR8Cct839RDUCqbDGK"
  93. #
  94. #[contact."anon"]
  95. #public_key = "7iTddcopP2pkvszFjbFUr7MwTcMSKZkYP6zUan22pxfX"