Next revision | Previous revision |
computing:mastodon [2022/11/06 21:53] – created oemb1905 | computing:mastodon [2024/12/19 17:45] (current) – oemb1905 |
---|
| |
sudo apt install certbot python3-certbot-nginx | sudo apt install certbot python3-certbot-nginx |
sudo certbot --authenticator standalone --installer apache -d gnulinux.social --pre-hook "systemctl stop nginx" --post-hook "systemctl start nginx" | sudo certbot --authenticator standalone --installer nginx -d gnulinux.social --pre-hook "systemctl stop nginx" --post-hook "systemctl start nginx" |
| |
Make sure to set up a cronjob for the cert to automatically renew: | Make sure to set up a cronjob for the cert to automatically renew: |
Also, there's no point in setting this up unless you have regular backups! In my case, since this is a VM, I just use the same script as I use for all my other instances. That script powers down the VM, and copies a sparse file, then tarballs it. After restarting the VM, my backup workstation pulls down the tarballs (also sparse) on a set schedule, keeping approximately 90 days of restore points. The backup script I use is found here and, of course, this runs on the host OS (not the Mastodon VM instance): | Also, there's no point in setting this up unless you have regular backups! In my case, since this is a VM, I just use the same script as I use for all my other instances. That script powers down the VM, and copies a sparse file, then tarballs it. After restarting the VM, my backup workstation pulls down the tarballs (also sparse) on a set schedule, keeping approximately 90 days of restore points. The backup script I use is found here and, of course, this runs on the host OS (not the Mastodon VM instance): |
| |
- VM Backup Script: [[https://repo.haacksnetworking.org/oemb1905/haackingclub/-/blob/master/scripts/sane-image-maker-gnulinux.sh|sane-image-maker-gnulinux.sh]] | - VM Backup Script: [[https://repo.haacksnetworking.org/oemb1905/haackingclub/-/blob/master/scripts/sane-vm-backup.sh|sane-vm-backup.sh]] |
| |
After doing all of this, I changed the admin password for the user I set up above, configured a few basic settings and visual preferences, and then ran the first backup using the script above. It's still purring right now and fail2ban is busy blocking bots and trolls! Let's go and happy hacking! | Lastly, I also have a hot-spare in case my co-located hardware fails. Swing on by: |
| |
- Self-hosted Mastodon Instance: [[https://gnulinux.social|GNU/Linux Social]] | - Self-hosted Mastodon Instance: [[https://gnulinux.social|GNU/Linux Social]] |
| |
--- //[[jonathan@haacksnetworking.org|oemb1905]] 2022/11/06 14:06// | --- //[[alerts@haacksnetworking.org|oemb1905]] 2024/12/19 17:45// |