-
Run the ZNC IRC Bouncer in a Docker container.
-
View chat logs using Kibana
-
(optional) If restoring from a backup, uncomment the first task in
znc.yml
(If necessary, update znc.yml to use the local path to the backup directory, which defaults toznc-default
) -
(optional Generate a self-signed SSL cert by running
$ ansible-playbook genkeys.yml
After you have done this, simply run
$ ansible-playbook znc.yml
If you do not already have a znc.conf
file in your znc config directory, you need to generate one from the interactive prompt. After running the above playbook once, run the following command on the remote server as root:
$ docker run --rm -it -v /home/znc/.znc:/znc-data chimeracoder/docker-znc-ssl --makeconf --datadir=/znc-data
Don't start the ZNC server when it asks you if you want to, since we'll be starting it as a daemon (so it runs in the background). When you're done generating the config, start the service systemctl start znc.service
.
- Create the directory
~/kibanaconf
on the remote server - Create signed SSL key/cert pair named
nginx.crt
andnginx.key
and place them in the~/kibanaconf
directory. (You probably want to use the same SSL certificate for Kibana and the ZNC server if you intend to run these on the same host) - Set two local environment variables,
USERNAME
andPASSWORD
, which will be used to restrict access to the log view
If you have less than 512 MB of RAM on the server, you may want to enable swap, as logstash tends to use around 500 MB when reading in logs for the first time:
$ ansible-playbook kibana.yml -vvvv
After you have done this, simply run
$ ansible-playbook kibana.yml -vvvv