-
-
Save dollabi11z/d1d2f970124e7a28ed97d9485c5e6a24 to your computer and use it in GitHub Desktop.
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
# clone repos | |
git clone https://github.com/kiwiirc/kiwiirc.git ~/kiwiirc/kiwiirc | |
git clone https://github.com/kiwiirc/webircgateway.git ~/kiwiirc/webircgateway | |
git clone https://github.com/kiwiirc/plugin-fileuploader.git ~/kiwiirc/plugin-fileuploader | |
# make destination directories | |
mkdir -p ~/kiwiirc/run/plugins | |
mkdir -p ~/kiwiirc/run/www | |
# setup fileupload as plugin | |
mkdir ~/kiwiirc/webircgateway/plugins/fileuploader | |
ln -s ~/kiwiirc/plugin-fileuploader/webircgateway-plugin/fileuploader-server.go ~/kiwiirc/webircgateway/plugins/fileuploader/plugin.go | |
# build webircgateway + plugins | |
cd ~/kiwiirc/webircgateway/ | |
make build-plugins | |
make build | |
# copy binaries and configs | |
cp ~/kiwiirc/webircgateway/webircgateway ~/kiwiirc/run/ | |
cp ~/kiwiirc/webircgateway/config.conf.example ~/kiwiirc/run/config.conf | |
cp ~/kiwiirc/webircgateway/plugins/fileuploader.so ~/kiwiirc/run/plugins/ | |
cp ~/kiwiirc/plugin-fileuploader/fileuploader.config.example.toml ~/kiwiirc/run/fileuploader.config.toml | |
# build kiwiirc and copy files | |
cd ~/kiwiirc/kiwiirc | |
yarn; yarn build | |
cp -r ~/kiwiirc/kiwiirc/dist/* ~/kiwiirc/run/www/ | |
mv ~/kiwiirc/run/www/static/config.json ~/kiwiirc/run/client.json | |
ln -s ~/kiwiirc/run/client.json ~/kiwiirc/run/www/static/config.json | |
# build fileuploader client plugin and copy | |
cd ~/kiwiirc/plugin-fileuploader/fileuploader-kiwiirc-plugin | |
yarn; yarn build | |
cp ~/kiwiirc/plugin-fileuploader/fileuploader-kiwiirc-plugin/dist/* ~/kiwiirc/run/www/static/plugins/ | |
cd ~/kiwiirc/run/ | |
# ~/kiwiirc/run/client.json edits | |
# | |
# ------------------------------------------------------------------------------------------------ | |
# | |
# "kiwiServer": "https://localdev.clients.kiwiirc.com/webirc/kiwiirc/", | |
# | |
# to | |
# | |
# "kiwiServer": "/webirc/kiwiirc/", | |
# | |
# ------------------------------------------------------------------------------------------------ | |
# | |
# "plugins": [ | |
# { "name": "customise", "url": "static/plugins/customise.html" } | |
# ] | |
# | |
# to | |
# | |
# "plugins": [ | |
# { "name": "customise", "url": "static/plugins/customise.html" }, | |
# { "name": "fileuploader", "url": "static/plugins/plugin-fileuploader.js" } | |
# ], | |
# "fileuploader": { | |
# "server": "/files", | |
# "maxFileSize": 10485760, | |
# "note": "Add an optional note to the upload dialog" | |
# } | |
# | |
# ------------------------------------------------------------------------------------------------ | |
# ~/kiwiirc/run/config.conf edits | |
# | |
# ------------------------------------------------------------------------------------------------ | |
# | |
# [fileserving] | |
# enabled = false | |
# webroot = www/ | |
# | |
# to | |
# | |
# [fileserving] | |
# enabled = true | |
# webroot = www/ | |
# | |
# [plugins] | |
# plugins/fileuploader.so | |
# | |
# ------------------------------------------------------------------------------------------------ | |
# also dont forget to edit [upstream.1] to your ircd details |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment