diff --git a/conf/config.json.example b/conf/client.json.example similarity index 64% rename from conf/config.json.example rename to conf/client.json.example index 9b84d3c..67b365a 100644 --- a/conf/config.json.example +++ b/conf/client.json.example @@ -1,7 +1,7 @@ { "windowTitle": "Kiwi IRC", "startupScreen": "welcome", - "kiwiServer": "https://__DOMAIN____PATH__", + "kiwiServer": "/webirc/kiwiirc/", "restricted": false, "theme": "Default", "themes": [ @@ -16,16 +16,11 @@ { "name": "Elite", "url": "static/themes/elite" } ], "startupOptions" : { - "server": "irc.freenode.net", + "server": "irc.libera.chat", "port": 6697, "tls": true, "channel": "#yunohost", - "nick": "" - }, - "embedly": { - "key": "" - }, - "plugins": [ - { "name": "customise", "url": "static/plugins/customise.html" } - ] + "nick": "web?" + "infoContent": "
Now to configure it.
You can modify this page via the /etc/kiwiirc/client.json file.
Add your IRC network details to /etc/kiwiirc/config.conf
Have a quick read through the config file - there are plenty of comments explaining each feature.
" + } } diff --git a/scripts/install b/scripts/install index 8f98785..b639d73 100644 --- a/scripts/install +++ b/scripts/install @@ -61,6 +61,19 @@ ynh_setup_source --dest_dir=$tempdir --source_id=app ynh_exec_warn_less dpkg -i $tempdir/kiwiirc_20.05.24.1-1_amd64.deb +#================================================= +# ADD A CONFIGURATION +#================================================= +# ynh_script_progression --message="Adding a configuration file..." --weight=1 + +# ynh_add_config --template="../conf/config.conf.example" --destination="/etc/kiwiirc/config.conf" +# ynh_add_config --template="../conf/client.json.example" --destination="/etc/kiwiirc/client.json" + +# chmod 600 "/etc/kiwiirc/config.conf" +# chown root: "/etc/kiwiirc/config.conf" +# chmod 600 "/etc/kiwiirc/client.json" +# chown root: "/etc/kiwiirc/client.json" + #================================================= # NGINX CONFIGURATION #=================================================