mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2025-06-05 21:59:39 +02:00
[chore] The Big Middleware and API Refactor (tm) (#1250)
* interim commit: start refactoring middlewares into package under router * another interim commit, this is becoming a big job * another fucking massive interim commit * refactor bookmarks to new style * ambassador, wiz zeze commits you are spoiling uz * she compiles, we're getting there * we're just normal men; we're just innocent men * apiutil * whoopsie * i'm glad noone reads commit msgs haha :blob_sweat: * use that weirdo go-bytesize library for maxMultipartMemory * fix media module paths
This commit is contained in:
@@ -641,9 +641,11 @@ syslog-address: "localhost:514"
|
||||
# Default: "lax"
|
||||
advanced-cookies-samesite: "lax"
|
||||
|
||||
# Int. Amount of requests to permit from a single IP address within a span of 5 minutes.
|
||||
# If this amount is exceeded, a 429 HTTP error code will be returned.
|
||||
# See https://docs.gotosocial.org/en/latest/api/swagger/#rate-limit.
|
||||
# Int. Amount of requests to permit per router grouping from a single IP address within
|
||||
# a span of 5 minutes. If this amount is exceeded, a 429 HTTP error code will be returned.
|
||||
#
|
||||
# Router groupings and rate limit headers are described here:
|
||||
# https://docs.gotosocial.org/en/latest/api/swagger/#rate-limit.
|
||||
#
|
||||
# If you find yourself adjusting this limit because it's regularly being exceeded,
|
||||
# you should first verify that your settings for `trusted-proxies` (above) are correct.
|
||||
@@ -655,5 +657,5 @@ advanced-cookies-samesite: "lax"
|
||||
# If you set this to 0 or less, rate limiting will be disabled entirely.
|
||||
#
|
||||
# Examples: [1000, 500, 0]
|
||||
# Default: 1000
|
||||
advanced-rate-limit-requests: 1000
|
||||
# Default: 300
|
||||
advanced-rate-limit-requests: 300
|
||||
|
Reference in New Issue
Block a user