Outils pour utilisateurs

Outils du site


memo:yunohost-pleroma

Ceci est une ancienne révision du document !


Administration de Pleroma sur Yunohost – Cheat Sheet

Documentation officielle de Pleroma

Gestion des utilisateurs

Créer un utilisateur

cd /var/www/pleroma/pleroma
MIX_ENV=prod mix pleroma.user new <username> <emailL>

Différentes options peuvent être ajoutées lors de la création d’un compte :

  • –name <name> – the user’s display name
  • –bio <bio> – the user’s bio
  • –password <password> – the user’s password
  • –moderator/–no-moderator – whether the user should be a moderator
  • –admin/–no-admin – whether the user should be an admin
  • -y, –assume-yes/–no-assume-yes – whether to assume yes to all questions

Désactiver un utilisateur

cd /var/www/pleroma/pleroma
sudo MIX_ENV=prod mix pleroma.user toggle_activated <username>

Supprimer un utilisateur

cd /var/www/pleroma/pleroma
sudo MIX_ENV=prod mix pleroma.user toggle_activated <username>

==== Supprimer les interactions d’un utilisateur (ne fonctionne pas chez moi ??) ====

cd /var/www/pleroma/pleroma
sudo MIX_ENV=prod mix pleroma.user toggle_activated <username>

Emoji

Répertoire des émoji personnalisés

instance/static/custom

Fichier emoji.txt

/var/www/pleroma/pleroma/config/emoji.txt

Redémarrer pleroma

sudo systemctl restart pleroma

Version 2.5

Fichier de config : /etc/pleroma/config.exs

Répertoire static (emojis) : /home/yunohost.app/pleroma/static Répertoire uploads : /home/yunohost.app/pleroma/uploads

Dans Yunohost, répertoire static :

/var/www/pleroma/pleroma/lib/pleroma-2.0.5-stable/priv/static/static

Pour l’image nsfw : /var/www/pleroma/pleroma/lib/pleroma-2.0.5-stable/priv/static/static/img

Mascotte :

Par défaut : pleroma_fox_tan

Dans Yunohost, image dans : var/www/pleroma/pleroma/lib/pleroma-2.0.5-stable/priv/static/images/

config :pleroma, :assets,
  mascots: [
    pleroma_fox_tan: %{
      url: "/images/pleroma-fox-tan-smol.png",
      mime_type: "image/png"
    },
    pleroma_fox_tan_shy: %{
      url: "/images/pleroma-fox-tan-shy.png",
      mime_type: "image/png"
    }
  ],
memo/yunohost-pleroma.1608737105.txt.gz · Dernière modification : 2021/06/09 12:11 (modification externe)