diff options
author | 2025-02-04 16:52:42 +0100 | |
---|---|---|
committer | 2025-02-04 16:52:42 +0100 | |
commit | 07d27709957248008c61d6b8d553e3d2eb14d154 (patch) | |
tree | d054e92729708e275886100492a458d633fbaa59 /docs/configuration/instance.md | |
parent | adds support for build specifically without wasm ffmpeg (#3732) (diff) | |
download | gotosocial-07d27709957248008c61d6b8d553e3d2eb14d154.tar.xz |
[feature] Change `instance-stats-randomize` to `instance-stats-mode` with multiple options; implement nodeinfo 2.1 (#3734)
* [feature] Change `instance-stats-randomize` to `instance-stats-mode` with multiple options; implement nodeinfo 2.1
* swaggalaggadingdong
Diffstat (limited to 'docs/configuration/instance.md')
-rw-r--r-- | docs/configuration/instance.md | 42 |
1 files changed, 32 insertions, 10 deletions
diff --git a/docs/configuration/instance.md b/docs/configuration/instance.md index fdaf324cf..bffec8f70 100644 --- a/docs/configuration/instance.md +++ b/docs/configuration/instance.md @@ -139,14 +139,36 @@ instance-subscriptions-process-from: "23:00" # Default: "24h" (once per day). instance-subscriptions-process-every: "24h" -# Bool. Set this to true to randomize stats served at -# the /api/v1|v2/instance and /nodeinfo/2.0 endpoints. -# -# This can be useful when you don't want bots to obtain -# reliable information about the amount of users and -# statuses on your instance. -# -# Options: [true, false] -# Default: false -instance-stats-randomize: false +# String. Allows you to customize if and how stats are served to +# crawlers at the /api/v1|v2/instance and /nodeinfo endpoints. +# +# Note that no matter what you set below, the /api/v1|v2/instance +# endpoints will not be allowed by robots.txt, as these are client +# API endpoints. +# +# "" / empty string (default mode): Serve accurate stats at instance +# and nodeinfo endpoints, and DISALLOW crawlers from crawling +# those endpoints in robots.txt. This mode is equivalent to politely +# asking crawlers not to crawl, but there's no guarantee they will obey, +# as unfortunately many crawlers don't even check robots.txt. +# +# "zero": Serve zeroed-out stats at instance and nodeinfo endpoints, +# and DISALLOW crawlers from crawling those endpoints in robots.txt. +# This mode prevents even ill-behaved crawlers from gathering stats +# about your instance, as all gathered values will be 0. This is the +# safest way of preserving your instance's privacy in terms of stats. +# +# "serve": Serve accurate stats at instance and nodeinfo endpoints, +# and ALLOW crawlers to crawl those endpoints. This mode is useful +# if you want to contribute to fediverse statistics collection projects. +# +# "baffle": Serve randomized, preposterous stats at instance and nodeinfo +# endpoints, and DISALLOW crawlers from crawling those endpoints in robots.txt. +# This mode can be useful to annoy crawlers that don't respect robots.txt. +# Warning that this may draw the ire of crawler implementers who don't +# respect robots.txt, and may therefore put a target on your instance. +# +# Options: ["", "zero", "serve", "baffle"] +# Default: "" +instance-stats-mode: "" ``` |