b1ek eca32f0507 | ||
---|---|---|
client | ||
server | ||
.gitignore | ||
README.md | ||
key-copy.sh |
README.md
blek! Online
A 88x31 widget to tell your website's users if you are online
Installation
There are some prerequisites for the user:
- You should know how to use docker compose and linux shell commands
- You MUST have a web server of your own. If you dont have it, there is literally no way for you to run this app.
- You should have a UNIX machine that you use on a daily basis. If you really want to, write a PR with windows support.
If you do not meet the prerequisities, you are very unlikely to properly run this without any severe tinkering.
- Clone the repo and cd to its directory
- Generate a 1024 bytes long key:
head -c 1024 /dev/random > secret.key
- Copy it to the directories using
key-copy.sh
- Put your server URL in
client/src/main.rs
on 4th line. - Install the client binary on your PC or laptop and set up a cron job to execute it once a minute.
- Copy the
secret.key
to your server anddocker-compose up -d
it. Then pass it via the reverse proxy to whereever you want.
Embeding the gif
Lets assume that $URL
is your server's url.
Embded it like this:
<img src='$URL/gif' width='88' height='31' alt='My online indicator' />