zelky: sharing your offline life.
⚡ preparing for the apocalypse never was so cool ⚡

Zelky local connection

Script mechanisme

the website automaticly detects if Zelky is in your local lan. this works the following way. This websites has dummy pages for yuke and zelky. zelky.freeddns.org, zelky-wired.freeddns.org, yuke.freeddns.org for generating a letsencrypt cert from time to time. these certs are copied to zelky and yuke. who update the hostnames with local ip addresses. because of the https certs. I can garantee the local ip is a zelky connection. this is used by the website to redirect to zelky or yuke. (Lithy is a accesspoint and only connects to a wifi when not connected to the rest of the cluster)

https

A javascript on the website checks local connections and redirects you to the right online website. to make the website code work on any node it stops if the website is run on a local node)

ssh

for ssh I made a shell script doing the same. only with better -4 -6 ip check. that also comes into play.

todo

perhaps i can make the javascript check disconnects and relays to alternative routes.

Security check. There is no way someone can generate a cert for a zelky website if the ip is some local ipaddress right!