https://github.com/spk/znc-urltimeline
A ZNC module that sends URLs from IRC channels to your Browser through a WebSocket
https://github.com/spk/znc-urltimeline
Last synced: 3 months ago
JSON representation
A ZNC module that sends URLs from IRC channels to your Browser through a WebSocket
- Host: GitHub
- URL: https://github.com/spk/znc-urltimeline
- Owner: spk
- License: wtfpl
- Created: 2014-10-02T22:04:26.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-12-08T19:53:42.000Z (over 8 years ago)
- Last Synced: 2025-01-03T13:22:14.425Z (5 months ago)
- Language: Lua
- Size: 6.84 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ZNC urltimeline
## What?
A ZNC module that sends URLs from IRC channels to your Browser through a
[WebSocket](https://github.com/openresty/lua-resty-websocket).## Installation
~~~ console
aptitude install ansible make
make install
~~~### ZNC
Add in your `znc.conf`:
~~~
LoadModule = modpython
LoadModule = urltimeline
~~~### htpasswd
You need to generate a password for the ZNC user, the list used is based on the
ZNC user name (urltimeline-ZNC_USER)~~~ console
ZNC_USER="spk"
PASSWORD="PASSWORD"
SALT="$(openssl rand -base64 3)"
SHA1=$(printf "$PASSWORD$SALT" | openssl dgst -binary -sha1 | sed 's#$#'"$SALT"'#' | base64)
printf "${ZNC_USER}:{SSHA}$SHA1\n" >> nginx/htpasswd
~~~Goto
## Tests
~~~ console
redis-cli rpush urltimeline-$ZNC_USER '{"timestamp":"2014-08-24T19:59:48.513890", "channel":"#test","nick":"USER","url":"https://github.com/openresty/lua-nginx-module#ngxthreadspawn"}'
~~~## Resources
*
*## License
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Copyright (c) 2016 Laurent Arnoud