posting.isincredibly.gay - NixOS Configuration#
Scripts#
nix run .#deploy- Deploy the current configuration
Other info#
Relevant bit of Caddy config that lives on another machine:
services.caddy.virtualHosts."isincredibly.gay".extraConfig = ''
@akkoma_wellknown path /.well-known/host-meta
handle @akkoma_wellknown {
redir https://posting.isincredibly.gay{uri} permanent
}
'';
Just redirects host-meta queries back over here, to facilitate webfinger stuff.
Backup strategy#
Taking stock of what needs to be backed up:
- Postgres (both
akkomaandgrafanadatabases) (obtained withpg_dump) - Akkoma media (
/var/lib/akkoma/uploads) - Akkoma secrets (
/var/lib/secrets) - Prometheus database? (
/var/lib/prometheus2) - Loki storage? (
/var/lib/loki) - Caddy cartificates? Should be regeneratable, right?
Akkoma stuff should be trivially doable with restic repositories in each folder
Postgres might need some indirection:
- pg_dump and compress to a temporary location (that is a restic repo)
- Do a restic backup
- Delete the dump locally