mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2025-06-05 21:59:39 +02: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:
@@ -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"
|
||||
)
|
||||
|
Reference in New Issue
Block a user