Advertisement
smileface

/etc/kiwiirc/config.conf

Feb 24th, 2025 (edited)
26
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.89 KB | None | 0 0
  1. # 1 = Debug; 2 = Info; 3 = Warn;
  2. logLevel = 3
  3.  
  4. # Enable the built in identd server (listens on port 113)
  5. identd = false
  6.  
  7. # The name of this gateway as reported in WEBIRC to IRC servers
  8. gateway_name = "webircgateway"
  9.  
  10. # A secret string used for generating client JWT tokens. Do not share this!
  11. secret = ""
  12.  
  13. # Send the server a quit message when the client is closed
  14. # Comment out to disable
  15. send_quit_on_client_close = "Client closed"
  16.  
  17. [verify]
  18. #recaptcha_url = "https://www.google.com/recaptcha/api/siteverify"
  19. #recaptcha_url = "https://hcaptcha.com/siteverify"
  20. #recaptcha_secret = "6LdDJLIqAAAAAASdoOtBtd0wLm9k2zTjLk5J2g-w"
  21. #recaptcha_key = "6LdDJLIqAAAAAJURcfc0K1IU49Pa5UvAtyRFnJXY"
  22.  
  23. # If required, a client must always pass a captcha challenge before making an IRC connection
  24. required = false
  25.  
  26. [clients]
  27. # Default username / realname for IRC connections. If disabled it will use
  28. # the values provided from the IRC client itself.
  29. # %a will be replaced with the users ip address
  30. # %h will be replaced with the users hostname
  31. # %i will be replaced with a hexed value of the users IP
  32. # %n will be replaced with the client provided nick
  33. #username = "%i"
  34. #realname = "I am a webchat user"
  35.  
  36. # This hostname value will only be used when using a WEBIRC password
  37. #hostname = "%h"
  38.  
  39. # The websocket / http server
  40. [server.1]
  41. bind = "0.0.0.0"
  42. port = 7778
  43.  
  44. # Example TLS server
  45. #[server.2]
  46. #bind = "0.0.0.0"
  47. #port = 443
  48. #tls = true
  49. #cert = server.crt
  50. #key = server.key
  51. # If you don't have a certificate, uncomment the below line to automatically generate a
  52. # free certificate using letsencrypt.com (overrides the above cert/key options). This requires
  53. # a server running on port 80 to initially generate the certificate.
  54. #letsencrypt_cache = ./certs
  55.  
  56. # Example unix socket server
  57. #[server.3]
  58. #bind = unix:/tmp/webircgateway.sock
  59. #bind_mode = 0777
  60.  
  61. # Serve static files from a web root folder.
  62. # Optional, but handy for serving the Kiwi IRC client if no other webserver is available
  63. [fileserving]
  64. enabled = true
  65. webroot = /usr/share/kiwiirc/
  66.  
  67. [transports]
  68. websocket
  69. sockjs
  70. kiwiirc
  71.  
  72. # Websites (hostnames) that are allowed to connect here
  73. # No entries here will allow any website to connect.
  74. # Origins do not include a trailing / after the host (and optional port)
  75. [allowed_origins]
  76. #"*://example.com"
  77.  
  78. # If using a reverse proxy, it must be whitelisted for the client
  79. # hostnames to be read correctly. In CIDR format.
  80. # The user IPs are read from the standard X-Forwarded-For HTTP header
  81. [reverse_proxies]
  82. 127.0.0.0/8
  83. 10.0.0.0/8
  84. 172.16.0.0/12
  85. 192.168.0.0/16
  86. "::1/128"
  87. "fd00::/8"
  88.  
  89. # Connections will be sent to a random upstream
  90. [upstream.1]
  91. hostname = "irc.wup.nu"
  92. port = 6667
  93. tls = false
  94. # Connection timeout in seconds
  95. timeout = 5
  96. # Throttle the lines being written by X per second
  97. throttle = 2
  98. webirc = ""
  99. serverpassword = ""
  100. # Outgoing protocol, valid options: tcp, tcp4, tcp6, unix
  101. # this can be used to force ipv4, ipv6 etc
  102. protocol = tcp
  103. # IP address of the local network interface to bind for outgoing connections
  104. localaddr = ""
  105.  
  106.  
  107. # A public gateway to any IRC network
  108. # If enabled, Kiwi IRC clients may connect to any IRC network (or a whitelisted
  109. # network below) through the kiwiirc engine
  110. [gateway]
  111. enabled = false
  112. timeout = 5
  113. throttle = 2
  114. # Outgoing protocol, valid options: tcp, tcp4, tcp6
  115. protocol = tcp
  116. # IP address of the local network interface to bind for outgoing connections
  117. localaddr = ""
  118.  
  119. # Whitelisted IRC networks while in public gateway mode
  120. # If any networks are in this list then connections can only be made to these
  121. [gateway.whitelist]
  122. #irc.example.com
  123. #*.example2.com
  124.  
  125. [gateway.webirc]
  126. localhost : UH5jwHBo1Sn8
  127. irc.wup.nu : UH5jwHBo1Sn8
  128. 145.239.11.31 : UH5jwHBo1Sn8
  129.  
  130.  
  131. [dnsbl]
  132. # "verify" - if the client supports it, tell it to show a captcha
  133. # "deny" - deny the connection entirely
  134. action = deny
  135.  
  136. [dnsbl.servers]
  137. dnsbl.dronebl.org
  138.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement