diff options
author | 2023-12-18 14:18:25 +0000 | |
---|---|---|
committer | 2023-12-18 14:18:25 +0000 | |
commit | 8ebb7775a35b632d49a8f294d83ac786666631f3 (patch) | |
tree | 02ac5475274125170132b0a4d9f69bd67491a32c /internal/config/const.go | |
parent | fix poll total vote double count (#2464) (diff) | |
download | gotosocial-8ebb7775a35b632d49a8f294d83ac786666631f3.tar.xz |
[feature] request blocking by http headers (#2409)
Diffstat (limited to 'internal/config/const.go')
-rw-r--r-- | internal/config/const.go | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/internal/config/const.go b/internal/config/const.go index 29e4b14e8..48087c4ce 100644 --- a/internal/config/const.go +++ b/internal/config/const.go @@ -17,10 +17,16 @@ 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. + RequestHeaderFilterModeAllow = "allow" + RequestHeaderFilterModeBlock = "block" + RequestHeaderFilterModeDisabled = "" ) |