Mastodon: Difference between revisions

imported>Cab404
m Fix a silly mistake
imported>Turion
Add section about setups
Line 1: Line 1:
== Automatic backups ==
Mastodon by default uses postgresql as database. Luckily, nixpkgs offers a useful service, [https://search.nixos.org/options?channel=unstable&show=services.postgresqlBackup.enable&from=0&size=50&sort=relevance&type=packages&query=postgresql <code>services.postgresqlBackup.enable</code>].
Example settings, assuming you have the default database settings:
<syntaxHighlight lang=nix>
  services.postgresqlBackup = {
    enable = true;
    databases = [ "mastodon" ];
  };
</syntaxHighlight>
== Using Caddy as a server  ==
== Using Caddy as a server  ==