Mastodon: Difference between revisions

import from old wiki
Add enabling full text search section
Line 44: Line 44:


== Tips and tricks ==
== Tips and tricks ==
=== Enabling full text search ===
Using OpenSearch as alternative to ElasticSearch after the license change. First set the following options and rebuild the config:<syntaxhighlight lang="nix">
services.opensearch.enable = true;
services.mastodon.elasticsearch.host = "127.0.0.1";
</syntaxhighlight>Then on the server run the following command to fill the search index:<syntaxhighlight lang="console">
$ sudo -u mastodon mastodon-tootctl search deploy
</syntaxhighlight>


=== Using Caddy as a server  ===
=== Using Caddy as a server  ===