Skip to content

Instantly share code, notes, and snippets.

@hello-party
Last active February 7, 2019 20:56
Show Gist options
  • Save hello-party/0d1c58fd6451beb321481c17b44bff13 to your computer and use it in GitHub Desktop.
Save hello-party/0d1c58fd6451beb321481c17b44bff13 to your computer and use it in GitHub Desktop.
Weechat SSL + Alias

FOR DIGITALOCEAN

Create a subdomain and rename your droplet to that FQDN (fully qualified domain name) -- e.g. d.omain.com

ON THE VPS

cat /etc/letsencrypt/live/d.omain.com/{privkey,fullchain}.pem > znc.pem

cd /etc/letsencrypt/renewal-hooks/deploy touch update-znc.pem chmod +x update-znc.pem nano update-znc.pem

12 3 * * * cat /etc/letsencrypt/live/d.omain.com/{privkey,fullchain}.pem > /home/znc-admin/.znc/znc.pem

IN WEECHAT

/server add $1 d.omain.com/9001 -ssl -username=yourusername/$1 -password=***** -autoconnect; /wait 1 /connect $1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment