From 617fb3d2dda8c51485cb2db5897258ad9415cedc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Mon, 11 Sep 2023 20:58:33 +0200 Subject: [PATCH] cleaning --- conf/nginx.conf | 4 ++-- doc/ADMIN.md | 27 --------------------------- doc/ADMIN_fr.md | 21 --------------------- 3 files changed, 2 insertions(+), 50 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index 402bc9c..4ec4c17 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -19,14 +19,14 @@ location __PATH__/ { # media caching stuff # https://docs.gotosocial.org/en/latest/advanced/caching/assets-media/#nginx location /assets/ { - alias __FINAL_PATH__/web/assets/; + alias __INSTALL_DIR__/web/assets/; autoindex off; expires 5m; add_header Cache-Control "public"; } location /fileserver/ { - alias __DATADIR__; + alias __DATA_DIR__; autoindex off; expires 1w; add_header Cache-Control "private, immutable"; diff --git a/doc/ADMIN.md b/doc/ADMIN.md index e59edf7..9e7a971 100644 --- a/doc/ADMIN.md +++ b/doc/ADMIN.md @@ -22,33 +22,6 @@ In this administration interface, you can configure the following things: You can configure your instance using the config panel integrated in Yunohost, you will find it in the admin interface of your YunoHost by following these steps: `Applications > gotosocial > Configure this app (Config Panel)` -In this control panel you can configure the following things: - -* Account configuration : - * Are registrations open? - * Manual validation of registrations? - * Required reason for registration? -* Media configuration - * Maximum image size - * Maximum video size - * Minimum number of characters for media descriptions - * Maximum number of characters for media descriptions - * Number of days media can be cached -* Post configuration - * Maximum number of characters for a new post - * Maximum number of characters in a Content Warning / subject of a new post - * Maximum number of options for a poll - * Maximum number of characters for a poll option - * Maximum number of media that can be added to a post - -Note: **Do not edit** the `config.yaml` file by hand. Always use this config panel instead. Otherwise your changes will be deleted at each update! - -#### Command line (CLI) - -To use the GoToSocial command line, you first need to place yourself in the folder of your instance: -`cd __INSTALL_DIR__` -Feel free to refer to the [GoToSocial command line documentation](https://docs.gotosocial.org/en/latest/admin/cli/). - #### User creation To create a new user, proceed as follows: diff --git a/doc/ADMIN_fr.md b/doc/ADMIN_fr.md index 0f82590..8852a36 100644 --- a/doc/ADMIN_fr.md +++ b/doc/ADMIN_fr.md @@ -22,27 +22,6 @@ Dans cette interface d'administration, vous pouvez paramétrer les choses suivan Vous pouvez configurer votre instance en utilisant le panneau de configuration intégré à YunoHost, vous le trouverez dans l'interface d'administration de votre YunoHost en suivant ces étapes : `Applications > gotosocial > Configurez cette application (Panneau de configuration)` -Dans ce panneau de configuration, vous pouvez configurer les choses suivantes : - -* Configuration des comptes : - * Ouverture des inscriptions ? - * Validation manuelle des inscriptions ? - * Motif d'inscription requis ? -* Configuration des médias - * Taille maximale des images - * Taille maximale des vidéos - * Nombre minimum de caractères pour les descriptions des médias - * Nombre maximum de caractères pour les descriptions des médias - * Nombre de jour de mise en cache des médias -* Configuration des posts - * Nombre maximum de caractères pour un nouveau post - * Nombre maximum de caractères dans un Content Warning / sujet d'un nouveau post - * Nombre maximum d'options pour un sondage - * Nombre maximum de caractères pour une option d'un sondage - * Nombre maximum de médias pouvant etre ajoutés à un post - -N.B. : **N'éditez pas** le fichier `config.yaml` à la main. Utilisez toujours ce panneau de configuration à la place. Sinon vos modifications seront effacées à chaque mise à jour ! - #### Ligne de commande Pour utiliser la ligne de commande de GoToSocial, vous devez d'abord vous placer dans le répertoire de votre instance :