Mastodon: Difference between revisions
import from old wiki |
→Usage: Add approve user command |
||
(3 intermediate revisions by 3 users not shown) | |||
Line 36: | Line 36: | ||
== Usage == | == Usage == | ||
Create user | |||
<syntaxhighlight lang="console"> | |||
# sudo -u mastodon mastodon-tootctl accounts create my_user --email myuser@example.org | |||
</syntaxhighlight> | |||
Confirm user mail manually | |||
<syntaxhighlight lang="console"> | |||
# sudo -u mastodon mastodon-tootctl accounts modify my_user --email myuser@example.org --confirm | |||
</syntaxhighlight> | |||
Approve user manually | |||
<syntaxhighlight lang="console"> | |||
# sudo -u mastodon mastodon-tootctl accounts modify my_user --email myuser@example.org --approve | |||
</syntaxhighlight> | |||
Change password for user <code>my_user</code> | Change password for user <code>my_user</code> | ||
Line 44: | Line 62: | ||
== 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 === | ||
Line 98: | Line 124: | ||
# Caddy requires file and socket access | # Caddy requires file and socket access | ||
users.users.caddy.extraGroups = [ "mastodon" ]; | users.users.caddy.extraGroups = [ "mastodon" ]; | ||
</syntaxHighlight> | </syntaxHighlight> |