Mastodon: Difference between revisions

Add enabling full text search section
Onny (talk | contribs)
Usage: Add approve user command
 
(2 intermediate revisions by 2 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 106: Line 124:
# Caddy requires file and socket access
# Caddy requires file and socket access
users.users.caddy.extraGroups = [ "mastodon" ];
users.users.caddy.extraGroups = [ "mastodon" ];
# Caddy systemd unit needs readwrite permissions to /run/mastodon-web
systemd.services.caddy.serviceConfig.ReadWriteDirectories = lib.mkForce [ "/var/lib/caddy" "/run/mastodon-web" ];


</syntaxHighlight>
</syntaxHighlight>