Advertisement
Guest User

Untitled

a guest
Feb 18th, 2020
271
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.80 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. [verify]
  14. recaptcha_secret = ""
  15. recaptcha_key = ""
  16.  
  17. [clients]
  18. # Default username / realname for IRC connections. If disabled it will use
  19. # the values provided from the IRC client itself.
  20. # %h will be replaced with the users hostname
  21. # %i will be replaced with a hexed value of the users IP
  22. username = "webchat"
  23. realname = "KiwiIRC User"
  24.  
  25. # This hostname value will only be used when using a WEBIRC password
  26. #hostname = "%h"
  27.  
  28. # The websocket / http server
  29. [server.1]
  30. bind = "127.0.0.1"
  31. port = 8090
  32.  
  33. # Example TLS server
  34. #[server.2]
  35. #bind = "127.0.0.1"
  36. #port = 443
  37. #tls = true
  38. #cert = server.crt
  39. #key = server.key
  40. # If you don't have a certificate, uncomment the below line to automatically generate a
  41. # free certificate using letsencrypt.com (overrides the above cert/key options). This requires
  42. # a server running on port 80 to initially generate the certificate.
  43. #letsencrypt_cache = ./certs
  44.  
  45. # Example unix socket server
  46. #[server.3]
  47. #bind = unix:/tmp/webircgateway.sock
  48. #bind_mode = 0777
  49.  
  50. # Serve static files from a web root folder.
  51. # Optional, but handy for serving the Kiwi IRC client if no other webserver is available
  52. [fileserving]
  53. enabled = true
  54. webroot = /usr/share/kiwiirc/
  55.  
  56. [transports]
  57. websocket
  58. sockjs
  59. kiwiirc
  60.  
  61. # Websites (hostnames) that are allowed to connect here
  62. # No entries here will allow any website to connect.
  63. [allowed_origins]
  64. #*://example.com
  65.  
  66. # If using a reverse proxy, it must be whitelisted for the client
  67. # hostnames to be read correctly. In CIDR format.
  68. # The user IPs are read from the standard X-Forwarded-For HTTP header
  69. [reverse_proxies]
  70. 127.0.0.0/8
  71. 10.0.0.0/8
  72. 172.16.0.0/12
  73. 192.168.0.0/16
  74. "::1/128"
  75. "fd00::/8"
  76.  
  77. # Connections will be sent to a random upstream
  78. [upstream.1]
  79. hostname = "irc.hybridirc.com"
  80. port = 6697
  81. tls = true
  82. # Connection timeout in seconds
  83. timeout = 5
  84. # Throttle the lines being written by X per second
  85. throttle = 2
  86. # Webirc password as set in the IRC server config
  87. webirc = "xxxxxx"
  88.  
  89. # A public gateway to any IRC network
  90. # If enabled, Kiwi IRC clients may connect to any IRC network (or a whitelisted
  91. # network below) through the kiwiirc engine
  92. [gateway]
  93. enabled = false
  94. timeout = 5
  95. throttle = 2
  96.  
  97. # Whitelisted IRC networks while in public gateway mode
  98. # If any networks are in this list then connections can only be made to these
  99. [gateway.whitelist]
  100. #irc.example.com
  101. #*.example2.com
  102.  
  103. # Webirc passwords used when running in the public gateway mode
  104. [gateway.webirc]
  105. irc.hybridirc.com = xxxxxxxxxxxx
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement