This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kiwi.plugin('relay_tidy', function(kiwi, log) { | |
// Add the bot nicks here in lowercase | |
var relayNicks = ['relaybot']; | |
var relayedRegex = /^(\S+\/<(\S+)>)/; | |
kiwi.on('message.new', function(event) { | |
if (relayNicks.indexOf(event.nick.toLowerCase()) === -1) { | |
return; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<VirtualHost *:80> | |
ServerName kiwiirc.itsonlybinary.com | |
ServerAdmin [email protected] | |
# Kiwi IRC client files are located here | |
DocumentRoot /usr/share/kiwiirc | |
DirectoryIndex index.html | |
# Reverse proxy websocket connections |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import znc | |
VERSION = '2' | |
COMMAND = "BOUNCER" | |
class bouncer(znc.Module): | |
module_types = [znc.CModInfo.GlobalModule] | |
description = "Provides KiwiIRC BOUNCER support" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
location / { | |
index index.html; | |
root /usr/share/kiwiirc/; | |
} | |
location /webirc/ { | |
# Forward incoming requests to local webircgateway socket | |
proxy_pass http://127.0.0.1:7778/webirc/; | |
# Set http version and headers | |
proxy_http_version 1.1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Kiwi IRC webircgateway | |
After=network.target | |
[Service] | |
User=kiwiirc | |
Group=kiwiirc | |
ExecStart=/usr/bin/kiwiirc --config=/etc/kiwiirc/config.conf | |
ExecReload=/bin/kill -HUP $MAINPID | |
WorkingDirectory=/usr/local/kiwiirc/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template id="pluginImgurUploadSelector"> | |
<div> | |
<a @click="pickImage()"> | |
<i class="fa fa-file-image-o"></i> | |
<input | |
@change="uploadImage($event)" | |
id="ImgurUploader" | |
type="file" | |
accept=".jpg,.jpeg,.png,.gif,.apng,.tiff,.pdf,.mov,.mp4" | |
style="display: none; width: 0; height: 0;"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
kiwi.plugin('gecos', function(kiwi, log) { | |
kiwi.on('network.new', function(event) { | |
var queryGecos = kiwi.exports.helpers.Misc.queryStringVal('gecos'); | |
event.network.gecos = queryGecos || "Fallback Gecos"; | |
}); | |
}); | |
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<VirtualHost *:80> | |
ServerName kiwiirc.example.com | |
ServerAdmin [email protected] | |
# Kiwi IRC client files are located here | |
DocumentRoot /usr/share/kiwiirc | |
DirectoryIndex index.html | |
# Reverse proxy websocket connections |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80; | |
listen [::]:80; | |
server_name irc.example.com; | |
include /etc/nginx/extra/certbot.conf; | |
location / { | |
return 301 https://$server_name$request_uri; | |
} | |
} |
OlderNewer