From 8ebb7775a35b632d49a8f294d83ac786666631f3 Mon Sep 17 00:00:00 2001 From: kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com> Date: Mon, 18 Dec 2023 14:18:25 +0000 Subject: [feature] request blocking by http headers (#2409) --- example/config.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'example') diff --git a/example/config.yaml b/example/config.yaml index e7364eb93..a0abb592d 100644 --- a/example/config.yaml +++ b/example/config.yaml @@ -361,6 +361,7 @@ instance-deliver-to-shared-inboxes: true # Default: false instance-inject-mastodon-version: false + ########################### ##### ACCOUNTS CONFIG ##### ########################### @@ -1033,3 +1034,20 @@ advanced-sender-multiplier: 2 # Example: ["s3.example.org", "some-bucket-name.s3.example.org"] # Default: [] advanced-csp-extra-uris: [] + +# String. HTTP request header filtering mode to use for this instance. +# +# "block" -- only requests that are explicitly blocked by header filters +# will be denied (unless they are also explicitly allowed). +# +# "allow" -- only requests that are explicitly allowed by header filters +# will be accepted (unless they are also explicitly blocked). +# +# "" -- request header filtering disabled. +# +# For more details on block and allow modes, check the documentation at: +# https://docs.gotosocial.org/en/latest/admin/request_filtering_modes +# +# Options: ["block", "allow", ""] +# Default: "" +advanced-header-filter-mode: "" \ No newline at end of file -- cgit v1.3