1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/gotosocial_ynh.git synced 2024-09-03 19:16:06 +02:00

meh, I'll continue later

This commit is contained in:
OniriCorpe 2022-12-06 18:41:09 +01:00
parent dcc1e155ac
commit 6e7dac6507
2 changed files with 139 additions and 33 deletions

View file

@ -35,6 +35,11 @@ log-db-queries: false
# Default: "gotosocial" # Default: "gotosocial"
application-name: "__APP__" application-name: "__APP__"
# String. The user that will be shown instead of the landing page. if no user is set, the landing page will be shown.
# Examples: "admin"
# Default: ""
landing-page-user: "__LANDING_PAGE_USER__"
# String. Hostname that this server will be reachable at. Defaults to localhost for local testing, # String. Hostname that this server will be reachable at. Defaults to localhost for local testing,
# but you should *definitely* change this when running for real, or your server won't work at all. # but you should *definitely* change this when running for real, or your server won't work at all.
# DO NOT change this after your server has already run once, or you will break things! # DO NOT change this after your server has already run once, or you will break things!
@ -45,12 +50,20 @@ host: "__DOMAIN__"
# String. Domain to use when federating profiles. This is useful when you want your server to be at # String. Domain to use when federating profiles. This is useful when you want your server to be at
# eg., "gts.example.org", but you want the domain on accounts to be "example.org" because it looks better # eg., "gts.example.org", but you want the domain on accounts to be "example.org" because it looks better
# or is just shorter/easier to remember. # or is just shorter/easier to remember.
#
# To make this setting work properly, you need to redirect requests at "example.org/.well-known/webfinger" # To make this setting work properly, you need to redirect requests at "example.org/.well-known/webfinger"
# to "gts.example.org/.well-known/webfinger" so that GtS can handle them properly. # to "gts.example.org/.well-known/webfinger" so that GtS can handle them properly.
#
# You should also redirect requests at "example.org/.well-known/nodeinfo" in the same way. # You should also redirect requests at "example.org/.well-known/nodeinfo" in the same way.
# An empty string (ie., not set) means that the same value as 'host' will be used. # An empty string (ie., not set) means that the same value as 'host' will be used.
#
# DO NOT change this after your server has already run once, or you will break things! # DO NOT change this after your server has already run once, or you will break things!
#
# Examples: ["example.org","server.com"] # Examples: ["example.org","server.com"]
#
# Please read the appropriate section of the installation guide before you go messing around with this setting:
# https://docs.gotosocial.org/installation_guide/advanced/#can-i-host-my-instance-at-fediexampleorg-but-have-just-exampleorg-in-my-username
#
# Default: "" # Default: ""
account-domain: "" account-domain: ""
@ -84,9 +97,10 @@ port: __PORT__
# If you're running inside a Docker container behind Traefik or Nginx, for example, add the subnet of your docker network, # If you're running inside a Docker container behind Traefik or Nginx, for example, add the subnet of your docker network,
# or the gateway of the docker network, and/or the address of the reverse proxy (if it's not running on the host network). # or the gateway of the docker network, and/or the address of the reverse proxy (if it's not running on the host network).
# Example: ["127.0.0.1/32", "172.20.0.1"] # Example: ["127.0.0.1/32", "172.20.0.1"]
# Default: ["127.0.0.1/32"] (localhost) # Default: ["127.0.0.1/32", "::1"] (localhost ipv4 + ipv6)
trusted-proxies: trusted-proxies:
- "127.0.0.1/32" - "127.0.0.1/32"
- "::1"
############################ ############################
##### DATABASE CONFIG ###### ##### DATABASE CONFIG ######
@ -186,6 +200,13 @@ instance-expose-peers: __INSTANCE_EXPOSE_PEERS__
# Default: false # Default: false
instance-expose-suspended: __INSTANCE_EXPOSE_SUSPENDED__ instance-expose-suspended: __INSTANCE_EXPOSE_SUSPENDED__
# Bool. Allow unauthenticated users to make queries to /api/v1/timelines/public in order
# to see a list of public posts on this server. Even if set to 'false', then authenticated
# users (members of the instance) will still be able to query the endpoint.
# Options: [true, false]
# Default: false
instance-expose-public-timeline: __INSTANCE_EXPOSE_PUBLIC TIMELINE__
# Bool. This flag tweaks whether GoToSocial will deliver ActivityPub messages # Bool. This flag tweaks whether GoToSocial will deliver ActivityPub messages
# to the shared inbox of a recipient, if one is available, instead of delivering # to the shared inbox of a recipient, if one is available, instead of delivering
# each message to each actor who should receive a message individually. # each message to each actor who should receive a message individually.
@ -298,12 +319,12 @@ media-emoji-remote-max-size: __MEDIA_EMOJI_REMOTE_MAX_SIZE__
# String. Type of storage backend to use. # String. Type of storage backend to use.
# Examples: ["local", "s3"] # Examples: ["local", "s3"]
# Default: "local" (storage on local disk) # Default: "local" (storage on local disk)
# NOTE: s3 storage is not yet supported! storage-backend: "__STORAGE_BACKEND__"
storage-backend: "local"
# String. Directory to use as a base path for storing files. # String. Directory to use as a base path for storing files.
# Make sure whatever user/group gotosocial is running as has permission to access # Make sure whatever user/group gotosocial is running as has permission to access
# this directory, and create new subdirectories and files within it. # this directory, and create new subdirectories and files within it.
# Only required when running with the local storage backend.
# Examples: ["/home/gotosocial/storage", "/opt/gotosocial/datastorage"] # Examples: ["/home/gotosocial/storage", "/opt/gotosocial/datastorage"]
# Default: "/gotosocial/storage" # Default: "/gotosocial/storage"
storage-local-base-path: "__DATADIR__" storage-local-base-path: "__DATADIR__"
@ -312,20 +333,25 @@ storage-local-base-path: "__DATADIR__"
# Only required when running with the s3 storage backend. # Only required when running with the s3 storage backend.
# Examples: ["minio:9000", "s3.nl-ams.scw.cloud", "s3.us-west-002.backblazeb2.com"] # Examples: ["minio:9000", "s3.nl-ams.scw.cloud", "s3.us-west-002.backblazeb2.com"]
# Default: "" # Default: ""
storage-s3-endpoint: "" storage-s3-endpoint: "__STORAGE_S3_ENDPOINT__"
# Bool. If data stored in S3 should be proxied through GoToSocial instead of redirecting to a presigned URL.
#
# Default: false
storage-s3-proxy: __STORAGE_S3_PROXY__
# String. Access key part of the S3 credentials. # String. Access key part of the S3 credentials.
# Consider setting this value using environment variables to avoid leaking it via the config file # Consider setting this value using environment variables to avoid leaking it via the config file
# Only required when running with the s3 storage backend. # Only required when running with the s3 storage backend.
# Examples: ["AKIAJSIE27KKMHXI3BJQ","miniouser"] # Examples: ["AKIAJSIE27KKMHXI3BJQ","miniouser"]
# Default: "" # Default: ""
storage-s3-access-key: "" storage-s3-access-key: "__STORAGE_S3_ACCESS_KEY__"
# String. Secret key part of the S3 credentials. # String. Secret key part of the S3 credentials.
# Consider setting this value using environment variables to avoid leaking it via the config file # Consider setting this value using environment variables to avoid leaking it via the config file
# Only required when running with the s3 storage backend. # Only required when running with the s3 storage backend.
# Examples: ["5bEYu26084qjSFyclM/f2pz4gviSfoOg+mFwBH39","miniopassword"] # Examples: ["5bEYu26084qjSFyclM/f2pz4gviSfoOg+mFwBH39","miniopassword"]
# Default: "" # Default: ""
storage-s3-secret-key: "" storage-s3-secret-key: "__STORAGE_S3_SECRET_KEY__"
# String. Name of the storage bucket. # String. Name of the storage bucket.
# #
# If you have already encoded your bucket name in the storage-s3-endpoint, this # If you have already encoded your bucket name in the storage-s3-endpoint, this
@ -336,7 +362,7 @@ storage-s3-secret-key: ""
# Only required when running with the s3 storage backend. # Only required when running with the s3 storage backend.
# Examples: ["gts","cool-instance"] # Examples: ["gts","cool-instance"]
# Default: "" # Default: ""
storage-s3-bucket: "" storage-s3-bucket: "__STORAGE_S3_BUCKET__"
########################### ###########################
##### STATUSES CONFIG ##### ##### STATUSES CONFIG #####
@ -550,4 +576,21 @@ syslog-address: "localhost:514"
# #
# Options: ["lax", "strict"] # Options: ["lax", "strict"]
# Default: "lax" # Default: "lax"
advanced-cookies-samesite: "lax" advanced-cookies-samesite: "__ADVANCED_COOKIES_SAMESITE__"
# Int. Amount of requests to permit from a single IP address within a span of 5 minutes.
# If this amount is exceeded, a 429 HTTP error code will be returned.
# See https://docs.gotosocial.org/en/latest/api/swagger/#rate-limit.
#
# If you find yourself adjusting this limit because it's regularly being exceeded,
# you should first verify that your settings for `trusted-proxies` (above) are correct.
# In many cases, when the rate limit is exceeded it is because your instance sees all
# incoming requests as coming from the *same IP address* (you can verify this by looking
# at the client IPs in your instance logs). If this is the case, try adding that IP
# address to your `trusted-proxies` *BEFORE* you go adjusting this rate limit setting!
#
# If you set this to 0 or less, rate limiting will be disabled entirely.
#
# Examples: [1000, 500, 0]
# Default: 1000
advanced-rate-limit-requests: __ADVANCED_RATE_LIMIT_REQUESTS__

View file

@ -1,10 +1,11 @@
version = "1.0" version = "1.0"
[gotosocial] [main]
services = ["__APP__"] services = ["__APP__"]
name = "GoToSocial configuration panel" name.en = "Main configuration"
name.fr = "Configuration principale"
help = "Here you can easily configure some things about your GoToSocial instance." help = "Here you can easily configure some things about your GoToSocial instance."
@ -12,13 +13,13 @@ help = "Here you can easily configure some things about your GoToSocial instance
#### ACCOUNTS CONFIG #### ACCOUNTS CONFIG
#################### ####################
[gotosocial.accounts] [main.accounts]
name = "Accounts config" name = "Accounts config"
help = "Config pertaining to creation and maintenance of accounts on the server, as well as defaults for new accounts." help = "Config pertaining to creation and maintenance of accounts on the server, as well as defaults for new accounts."
[gotosocial.accounts.registration_open] [main.accounts.registration_open]
ask.en = "Open registrations?" ask.en = "Open registrations?"
ask.fr = "Inscriptions ouvertes ?" ask.fr = "Inscriptions ouvertes ?"
bind = "accounts-registration-open:__FINALPATH__/config.yaml" bind = "accounts-registration-open:__FINALPATH__/config.yaml"
@ -28,7 +29,7 @@ help.en = "Do we want people to be able to just submit sign up requests, or do w
help.fr = "Voulez-vous que les gens puissent simplement envoyer des demandes d'inscription, ou voulez-vous qu'iels doivent être invité-e-s ?" help.fr = "Voulez-vous que les gens puissent simplement envoyer des demandes d'inscription, ou voulez-vous qu'iels doivent être invité-e-s ?"
type = "select" type = "select"
[gotosocial.accounts.approval_required] [main.accounts.approval_required]
ask.en = "Approval required?" ask.en = "Approval required?"
ask.fr = "Validation requise ?" ask.fr = "Validation requise ?"
bind = "accounts-approval-required:__FINALPATH__/config.yaml" bind = "accounts-approval-required:__FINALPATH__/config.yaml"
@ -38,7 +39,7 @@ help.en = "Do sign up requests require approval from an admin/moderator before a
help.fr = "Les demandes d'inscription doivent-elles être approuvées par un-e administrateur-ice/modérateur-ice avant qu'un compte puisse se connecter/utiliser le serveur ?" help.fr = "Les demandes d'inscription doivent-elles être approuvées par un-e administrateur-ice/modérateur-ice avant qu'un compte puisse se connecter/utiliser le serveur ?"
type = "select" type = "select"
[gotosocial.accounts.reason_required] [main.accounts.reason_required]
ask.en = "Reason required?" ask.en = "Reason required?"
ask.fr = "Motif requis ?" ask.fr = "Motif requis ?"
bind = "accounts-reason-required:__FINALPATH__/config.yaml" bind = "accounts-reason-required:__FINALPATH__/config.yaml"
@ -48,7 +49,7 @@ help.en = "Are sign up requests required to submit a reason for the request (eg.
help.fr = "Les demandes d'inscription doivent-elles être motivées (par exemple, par une explication de la raison pour laquelle la personne souhaite rejoindre l'instance) ?" help.fr = "Les demandes d'inscription doivent-elles être motivées (par exemple, par une explication de la raison pour laquelle la personne souhaite rejoindre l'instance) ?"
type = "select" type = "select"
[gotosocial.accounts.allow_custom_css] [main.accounts.allow_custom_css]
ask.en = "Allow custom CSS?" ask.en = "Allow custom CSS?"
ask.fr = "Autoriser le CSS personnalisé ?" ask.fr = "Autoriser le CSS personnalisé ?"
bind = "accounts-allow-custom-css:__FINALPATH__/config.yaml" bind = "accounts-allow-custom-css:__FINALPATH__/config.yaml"
@ -68,12 +69,12 @@ type = "select"
#### MEDIA CONFIG #### MEDIA CONFIG
################# #################
[gotosocial.media] [main.media]
name = "Media config" name = "Media config"
help = "Config pertaining to user media uploads (videos, image, image descriptions)." help = "Config pertaining to user media uploads (videos, image, image descriptions)."
[gotosocial.media.media_image_max_size] [main.media.media_image_max_size]
ask.en = "Maximum allowed image upload size in bytes." ask.en = "Maximum allowed image upload size in bytes."
ask.fr = "Taille maximale autorisée pour le téléchargement d'images, en octets." ask.fr = "Taille maximale autorisée pour le téléchargement d'images, en octets."
bind = "media-image-max-size:__FINALPATH__/config.yaml" bind = "media-image-max-size:__FINALPATH__/config.yaml"
@ -82,7 +83,7 @@ help.en = "Default: 2097152 -- aka 2MB"
help.fr = "Valeur par défaut : 2097152 (soit 2 Mo)" help.fr = "Valeur par défaut : 2097152 (soit 2 Mo)"
type = "number" type = "number"
[gotosocial.media.media_video_max_size] [main.media.media_video_max_size]
ask.en = "Maximum allowed video upload size in bytes." ask.en = "Maximum allowed video upload size in bytes."
ask.fr = "Taille maximale autorisée pour le téléchargement de vidéos, en octets." ask.fr = "Taille maximale autorisée pour le téléchargement de vidéos, en octets."
bind = "media-video-max-size:__FINALPATH__/config.yaml" bind = "media-video-max-size:__FINALPATH__/config.yaml"
@ -91,7 +92,7 @@ help.en = "Default: 10485760 -- aka 10MB"
help.fr = "Valeur par défaut : 10485760 (soit 10 Mo)" help.fr = "Valeur par défaut : 10485760 (soit 10 Mo)"
type = "number" type = "number"
[gotosocial.media.media_description_min_chars] [main.media.media_description_min_chars]
ask.en = "Minimum amount of characters required as an image or video description." ask.en = "Minimum amount of characters required as an image or video description."
ask.fr = "Nombre minimum de caractères requis pour la description d'une image ou d'une vidéo." ask.fr = "Nombre minimum de caractères requis pour la description d'une image ou d'une vidéo."
bind = "media-description-min-chars:__FINALPATH__/config.yaml" bind = "media-description-min-chars:__FINALPATH__/config.yaml"
@ -100,7 +101,7 @@ help.en = "Default: 0 (not required)"
help.fr = "Valeur par défaut : 0 (non obligatoire)" help.fr = "Valeur par défaut : 0 (non obligatoire)"
type = "number" type = "number"
[gotosocial.media.media_description_max_chars] [main.media.media_description_max_chars]
ask.en = "Maximum amount of characters permitted in an image or video description." ask.en = "Maximum amount of characters permitted in an image or video description."
ask.fr = "Nombre maximum de caractères requis pour la description d'une image ou d'une vidéo." ask.fr = "Nombre maximum de caractères requis pour la description d'une image ou d'une vidéo."
bind = "media-description-max-chars:__FINALPATH__/config.yaml" bind = "media-description-max-chars:__FINALPATH__/config.yaml"
@ -109,7 +110,7 @@ help.en = "Default: 500"
help.fr = "Valeur par défaut : 500" help.fr = "Valeur par défaut : 500"
type = "number" type = "number"
[gotosocial.media.media_remote_cache_days] [main.media.media_remote_cache_days]
ask.en = "Number of days to cache media from remote instances before they are removed from the cache." ask.en = "Number of days to cache media from remote instances before they are removed from the cache."
ask.fr = "Nombre de jours de mise en cache des médias des instances distantes avant qu'ils ne soient retirés du cache." ask.fr = "Nombre de jours de mise en cache des médias des instances distantes avant qu'ils ne soient retirés du cache."
bind = "media-remote-cache-days:__FINALPATH__/config.yaml" bind = "media-remote-cache-days:__FINALPATH__/config.yaml"
@ -126,7 +127,7 @@ Si la valeur 0 est attribuée à ce paramètre, les médias des instances distan
""" """
type = "number" type = "number"
[gotosocial.media.media_emoji_local_max_size] [main.media.media_emoji_local_max_size]
ask.en = "Max size in bytes of emojis uploaded to this instance via the admin API." ask.en = "Max size in bytes of emojis uploaded to this instance via the admin API."
ask.fr = "Taille maximale en octets des emojis téléchargés vers cette instance via l'API d'administration." ask.fr = "Taille maximale en octets des emojis téléchargés vers cette instance via l'API d'administration."
bind = "media-emoji-local-max-size:__FINALPATH__/config.yaml" bind = "media-emoji-local-max-size:__FINALPATH__/config.yaml"
@ -139,7 +140,7 @@ La valeur par défaut est la même que la limite de taille des emojis de Mastodo
Si vous augmentez cette limite, vous risquez d'avoir des problèmes avec la fédération de vos emojis à d'autres instances, alors faites preuve de prudence.""" Si vous augmentez cette limite, vous risquez d'avoir des problèmes avec la fédération de vos emojis à d'autres instances, alors faites preuve de prudence."""
type = "number" type = "number"
[gotosocial.media.media_emoji_remote_max_size] [main.media.media_emoji_remote_max_size]
ask.en = "Max size in bytes of emojis to download from other instances." ask.en = "Max size in bytes of emojis to download from other instances."
ask.fr = "Taille maximale en octets des emojis téléchargeables à partir d'autres instances." ask.fr = "Taille maximale en octets des emojis téléchargeables à partir d'autres instances."
bind = "media-emoji-remote-max-size:__FINALPATH__/config.yaml" bind = "media-emoji-remote-max-size:__FINALPATH__/config.yaml"
@ -156,12 +157,12 @@ type = "number"
### STATUSES CONFIG ### STATUSES CONFIG
################### ###################
[gotosocial.statuses] [main.statuses]
name = "Status config" name = "Status config"
help = "Config pertaining to the creation of statuses/posts, and permitted limits." help = "Config pertaining to the creation of statuses/posts, and permitted limits."
[gotosocial.statuses.statuses_max_chars] [main.statuses.statuses_max_chars]
ask.en = "Maximum amount of characters permitted for a new status." ask.en = "Maximum amount of characters permitted for a new status."
ask.fr = "Nombre maximal de caractères autorisés pour un nouveau statut." ask.fr = "Nombre maximal de caractères autorisés pour un nouveau statut."
bind = "statuses-max-chars:__FINALPATH__/config.yaml" bind = "statuses-max-chars:__FINALPATH__/config.yaml"
@ -170,7 +171,7 @@ help.en = "Default: 5000. Note that going way higher than the default might brea
help.fr = "Valeur par défaut : 5000. Notez que si vous dépassez la valeur par défaut, vous risquez de compromettre la fédération." help.fr = "Valeur par défaut : 5000. Notez que si vous dépassez la valeur par défaut, vous risquez de compromettre la fédération."
type = "number" type = "number"
[gotosocial.statuses.statuses_cw_max_chars] [main.statuses.statuses_cw_max_chars]
ask.en = "Maximum amount of characters allowed in the CW/subject header of a status." ask.en = "Maximum amount of characters allowed in the CW/subject header of a status."
ask.fr = "Nombre maximum de caractères autorisés dans l'en-tête CW/sujet d'un statut." ask.fr = "Nombre maximum de caractères autorisés dans l'en-tête CW/sujet d'un statut."
bind = "statuses-cw-max-chars:__FINALPATH__/config.yaml" bind = "statuses-cw-max-chars:__FINALPATH__/config.yaml"
@ -179,7 +180,7 @@ help.en = "Default: 100. Note that going way higher than the default might break
help.fr = "Valeur par défaut : 100. Notez que si vous dépassez la valeur par défaut, vous risquez de compromettre la fédération." help.fr = "Valeur par défaut : 100. Notez que si vous dépassez la valeur par défaut, vous risquez de compromettre la fédération."
type = "number" type = "number"
[gotosocial.statuses.statuses_poll_max_options] [main.statuses.statuses_poll_max_options]
ask.en = "Maximum amount of options to permit when creating a new poll." ask.en = "Maximum amount of options to permit when creating a new poll."
ask.fr = "Nombre maximum d'options autorisées lors de la création d'un nouveau sondage." ask.fr = "Nombre maximum d'options autorisées lors de la création d'un nouveau sondage."
bind = "statuses-poll-max-options:__FINALPATH__/config.yaml" bind = "statuses-poll-max-options:__FINALPATH__/config.yaml"
@ -188,7 +189,7 @@ help.en = "Default: 6. Note that going way higher than the default might break f
help.fr = "Valeur par défaut : 6. Notez que si vous dépassez la valeur par défaut, vous risquez de compromettre la fédération." help.fr = "Valeur par défaut : 6. Notez que si vous dépassez la valeur par défaut, vous risquez de compromettre la fédération."
type = "number" type = "number"
[gotosocial.statuses.statuses_poll_option_max_chars] [main.statuses.statuses_poll_option_max_chars]
ask.en = "Maximum amount of characters to permit per poll option when creating a new poll." ask.en = "Maximum amount of characters to permit per poll option when creating a new poll."
ask.fr = "Nombre maximal de caractères autorisés par option de sondage lors de la création d'un nouveau sondage." ask.fr = "Nombre maximal de caractères autorisés par option de sondage lors de la création d'un nouveau sondage."
bind = "statuses-poll-option-max-chars:__FINALPATH__/config.yaml" bind = "statuses-poll-option-max-chars:__FINALPATH__/config.yaml"
@ -197,7 +198,7 @@ help.en = "Default: 50. Note that going way higher than the default might break
help.fr = "Valeur par défaut : 50. Notez que si vous dépassez la valeur par défaut, vous risquez de compromettre la fédération." help.fr = "Valeur par défaut : 50. Notez que si vous dépassez la valeur par défaut, vous risquez de compromettre la fédération."
type = "number" type = "number"
[gotosocial.statuses.statuses_media_max_files] [main.statuses.statuses_media_max_files]
ask.en = "Maximum amount of media files that can be attached to a new status." ask.en = "Maximum amount of media files that can be attached to a new status."
ask.fr = "Quantité maximale de fichiers multimédias qui peuvent être joints à un nouveau statut." ask.fr = "Quantité maximale de fichiers multimédias qui peuvent être joints à un nouveau statut."
bind = "statuses-media-max-files:__FINALPATH__/config.yaml" bind = "statuses-media-max-files:__FINALPATH__/config.yaml"
@ -210,13 +211,13 @@ type = "number"
#### INSTANCE CONFIG #### INSTANCE CONFIG
#################### ####################
[gotosocial.instance] [main.instance]
name = "Instance config" name = "Instance config"
help = "Config pertaining to instance federation settings, pages to hide/expose, etc." help = "Config pertaining to instance federation settings, pages to hide/expose, etc."
[gotosocial.instance.instance_expose_peers] [main.instance.instance_expose_peers]
ask.en = "API: Expose peers?" ask.en = "API: Expose peers?"
ask.fr = "API : Exposer les pairs ?" ask.fr = "API : Exposer les pairs ?"
bind = "instance-expose-peers:__FINALPATH__/config.yaml" bind = "instance-expose-peers:__FINALPATH__/config.yaml"
@ -226,7 +227,7 @@ help.en = "Allow unauthenticated users to make queries to /api/v1/instance/peers
help.fr = "Permet aux utilisateurs non authentifiés d'effectuer des requêtes API sur /api/v1/instance/peers?filter=open afin d'afficher la liste des instances avec lesquelles votre instance est en relation. Même s'il est défini à 'false', les utilisateurs authentifiés (membres de l'instance) seront toujours en mesure d'interroger l'API." help.fr = "Permet aux utilisateurs non authentifiés d'effectuer des requêtes API sur /api/v1/instance/peers?filter=open afin d'afficher la liste des instances avec lesquelles votre instance est en relation. Même s'il est défini à 'false', les utilisateurs authentifiés (membres de l'instance) seront toujours en mesure d'interroger l'API."
type = "select" type = "select"
[gotosocial.instance.instance_expose_suspended] [main.instance.instance_expose_suspended]
ask.en = "API: Expose suspended?" ask.en = "API: Expose suspended?"
ask.fr = "API : Exposer les instances bloquées ?" ask.fr = "API : Exposer les instances bloquées ?"
bind = "instance-expose-suspended:__FINALPATH__/config.yaml" bind = "instance-expose-suspended:__FINALPATH__/config.yaml"
@ -236,7 +237,7 @@ help.en = "Allow unauthenticated users to make queries to /api/v1/instance/peers
help.fr = "Permet aux utilisateurs non authentifiés d'effectuer des requêtes API sur /api/v1/instance/peers?filter=suspended afin de voir la liste des instances bloquées ou suspendues par votre instance. Cela permettra également aux utilisateurs non authentifiés de consulter la liste via l'interface Web. Même s'il est défini à 'false', les utilisateurs authentifiés (membres de l'instance) seront toujours en mesure d'interroger l'API." help.fr = "Permet aux utilisateurs non authentifiés d'effectuer des requêtes API sur /api/v1/instance/peers?filter=suspended afin de voir la liste des instances bloquées ou suspendues par votre instance. Cela permettra également aux utilisateurs non authentifiés de consulter la liste via l'interface Web. Même s'il est défini à 'false', les utilisateurs authentifiés (membres de l'instance) seront toujours en mesure d'interroger l'API."
type = "select" type = "select"
[gotosocial.instance.instance_deliver_to_shared_inboxes] [main.instance.instance_deliver_to_shared_inboxes]
ask.en = "Deliver to shared inboxes?" ask.en = "Deliver to shared inboxes?"
ask.fr = "Envoi en boites partagées ?" ask.fr = "Envoi en boites partagées ?"
bind = "instance-deliver-to-shared-inboxes:__FINALPATH__/config.yaml" bind = "instance-deliver-to-shared-inboxes:__FINALPATH__/config.yaml"
@ -249,3 +250,65 @@ help.fr = """Ce paramètre détermine si GoToSocial livrera les messages Activit
La livraison dans la boîte de réception partagée peut réduire de manière significative la charge du réseau lorsque la livraison à plusieurs destinataires partagent une boîte de réception (par exemple, sur les grandes instances Mastodon).\ La livraison dans la boîte de réception partagée peut réduire de manière significative la charge du réseau lorsque la livraison à plusieurs destinataires partagent une boîte de réception (par exemple, sur les grandes instances Mastodon).\
Voir : https://www.w3.org/TR/activitypub/#shared-inbox-delivery""" Voir : https://www.w3.org/TR/activitypub/#shared-inbox-delivery"""
type = "select" type = "select"
####################
#### STORAGE SETTINGS
####################
[storage]
name.en = "Storage configuration"
name.fr = "Configuration du stockage"
services = ["__APP__"]
[storage.storage]
name = "Storage settings"
help = "Config pertaining to storage of user-created uploads (videos, images, etc)."
####################
#### ADVANCED SETTINGS
####################
[advanced]
name.en = "Advanced configuration"
name.fr = "Configuration avancée"
services = ["__APP__"]
[advanced.advanced]
name = "Advanced settings"
help = "Settings pertaining to http timeouts, security, cookies, and more. ⚠️ ONLY ADJUST THESE SETTINGS IF YOU KNOW WHAT YOU ARE DOING! ⚠️"
[gotosocial.advanced.advanced-cookies-samesite]
ask.en = "Value of the SameSite attribute of cookies set by GoToSocial."
ask.fr = ""
bind = "advanced-cookies-samesite:__FINALPATH__/config.yaml"
choices = ["lax", "strict"]
default = "lax"
help.en = """Defaults to 'lax' to ensure that the OIDC flow does not break, which is fine in most cases.\
If you want to harden your instance against CSRF attacks and don't mind if some login-related things might break, you can set this to 'strict' instead.\
For an overview of what this does, see:\
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie/SameSite"""
help.fr = ""
type = "select"
[gotosocial.advanced.advanced-rate-limit-requests]
ask.en = "Amount of requests to permit from a single IP address within a span of 5 minutes."
ask.fr = ""
bind = "advanced-rate-limit-requests:__FINALPATH__/config.yaml"
default = "1000"
help.en = """Default: 1000\
If this amount is exceeded, a 429 HTTP error code will be returned.\
See https://docs.gotosocial.org/en/latest/api/swagger/#rate-limit.\
If you find yourself adjusting this limit because it's regularly being exceeded, you should first verify that your settings for `trusted-proxies` are correct.\
In many cases, when the rate limit is exceeded it is because your instance sees all incoming requests as coming from the *same IP address* (you can verify this by looking at the client IPs in your instance logs).\
If this is the case, try adding that IP address to your `trusted-proxies` *BEFORE* you go adjusting this rate limit setting!\
If you set this to 0 or less, rate limiting will be disabled entirely."""
help.fr = "Valeur par défaut : 1000"
type = "number"