diff options
author | 2024-03-15 13:13:57 +0100 | |
---|---|---|
committer | 2024-03-15 13:13:57 +0100 | |
commit | e6e696ae22acedbebbb50b7f734bf6644ee46528 (patch) | |
tree | f327a38f71f493b70144bbb62e9cb527049751ef | |
parent | [chore] Swagger: add missing paging params to bookmarks list (#2759) (diff) | |
download | gotosocial-e6e696ae22acedbebbb50b7f734bf6644ee46528.tar.xz |
[docs] Add IPv6 example for rate limit exceptions (#2761)
-rw-r--r-- | docs/configuration/advanced.md | 6 | ||||
-rw-r--r-- | example/config.yaml | 6 |
2 files changed, 10 insertions, 2 deletions
diff --git a/docs/configuration/advanced.md b/docs/configuration/advanced.md index b0ff4c7b6..f776dac54 100644 --- a/docs/configuration/advanced.md +++ b/docs/configuration/advanced.md @@ -57,6 +57,10 @@ advanced-rate-limit-requests: 300 # applied on their requests, and rate limit headers will not be # set for those requests. # +# For IPv6, we only take subnets up to a /64 into account. If you +# want to open up a larger prefix, you'll need to list multiple +# prefixes instead. +# # This can be useful in the following example cases (and probably # a bunch of others as well): # @@ -76,7 +80,7 @@ advanced-rate-limit-requests: 300 # wide a range. If in doubt, be too restrictive rather than too # lenient, and adjust as you go. # -# Example: ["192.168.0.0/16"] +# Example: ["192.168.0.0/16", "2001:DB8:FACE:CAFE::/64"] # Default: [] advanced-rate-limit-exceptions: [] diff --git a/example/config.yaml b/example/config.yaml index 8843e42d4..8c8db0932 100644 --- a/example/config.yaml +++ b/example/config.yaml @@ -980,6 +980,10 @@ advanced-rate-limit-requests: 300 # applied on their requests, and rate limit headers will not be # set for those requests. # +# For IPv6, we only take subnets up to a /64 into account. If you +# want to open up a larger prefix, you'll need to list multiple +# prefixes instead. +# # This can be useful in the following example cases (and probably # a bunch of others as well): # @@ -999,7 +1003,7 @@ advanced-rate-limit-requests: 300 # wide a range. If in doubt, be too restrictive rather than too # lenient, and adjust as you go. # -# Example: ["192.168.0.0/16"] +# Example: ["192.168.0.0/16", "2001:DB8:FACE:CAFE::/64"] # Default: [] advanced-rate-limit-exceptions: [] |