1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/gotosocial_ynh.git synced 2024-09-03 19:16:06 +02:00
This commit is contained in:
Éric Gaspar 2023-09-11 20:58:33 +02:00
parent 0f4c8fe82b
commit 617fb3d2dd
3 changed files with 2 additions and 50 deletions

View file

@ -19,14 +19,14 @@ location __PATH__/ {
# media caching stuff # media caching stuff
# https://docs.gotosocial.org/en/latest/advanced/caching/assets-media/#nginx # https://docs.gotosocial.org/en/latest/advanced/caching/assets-media/#nginx
location /assets/ { location /assets/ {
alias __FINAL_PATH__/web/assets/; alias __INSTALL_DIR__/web/assets/;
autoindex off; autoindex off;
expires 5m; expires 5m;
add_header Cache-Control "public"; add_header Cache-Control "public";
} }
location /fileserver/ { location /fileserver/ {
alias __DATADIR__; alias __DATA_DIR__;
autoindex off; autoindex off;
expires 1w; expires 1w;
add_header Cache-Control "private, immutable"; add_header Cache-Control "private, immutable";

View file

@ -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: 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)` `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 #### User creation
To create a new user, proceed as follows: To create a new user, proceed as follows:

View file

@ -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 : 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)` `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 #### Ligne de commande
Pour utiliser la ligne de commande de GoToSocial, vous devez d'abord vous placer dans le répertoire de votre instance : Pour utiliser la ligne de commande de GoToSocial, vous devez d'abord vous placer dans le répertoire de votre instance :