Advertisement
Guest User

Untitled

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