mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-15 05:03:03 -06:00
[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
This commit is contained in:
parent
e1781ff52e
commit
07d2770995
18 changed files with 283 additions and 77 deletions
|
|
@ -17,16 +17,28 @@
|
|||
|
||||
package config
|
||||
|
||||
// Instance federation mode determines how this
|
||||
// instance federates with others (if at all).
|
||||
const (
|
||||
// Instance federation mode determines how this
|
||||
// instance federates with others (if at all).
|
||||
InstanceFederationModeBlocklist = "blocklist"
|
||||
InstanceFederationModeAllowlist = "allowlist"
|
||||
InstanceFederationModeDefault = InstanceFederationModeBlocklist
|
||||
)
|
||||
|
||||
// Request header filter mode determines how
|
||||
// this instance will perform request filtering.
|
||||
// Request header filter mode determines how
|
||||
// this instance will perform request filtering.
|
||||
const (
|
||||
RequestHeaderFilterModeAllow = "allow"
|
||||
RequestHeaderFilterModeBlock = "block"
|
||||
RequestHeaderFilterModeDisabled = ""
|
||||
)
|
||||
|
||||
// Instance stats mode determines if and how
|
||||
// stats about the instance are served at
|
||||
// nodeinfo and api/v1|v2/instance endpoints.
|
||||
const (
|
||||
InstanceStatsModeDefault = ""
|
||||
InstanceStatsModeServe = "serve"
|
||||
InstanceStatsModeZero = "zero"
|
||||
InstanceStatsModeBaffle = "baffle"
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue