Disabled this shitty rate limiter
This commit is contained in:
parent
533e182d0d
commit
c745e18b5d
|
@ -22,6 +22,4 @@ SFTP_HOST=host.com
|
|||
SFTP_DESTINATION_PATH_ROOT="/absolute/path/to/destination/root/folder"
|
||||
SFTP_BASE_URL=https://base-url.com
|
||||
|
||||
PAYLOAD_PUBLIC_FRONTEND_BASE_URL=https://domain.com
|
||||
|
||||
RATING_LIMIT_SKIP_TOKEN=ratelimitskiptoken5e6ea45ef4e66eaa151612bdcb599df
|
||||
PAYLOAD_PUBLIC_FRONTEND_BASE_URL=https://domain.com
|
|
@ -88,9 +88,7 @@ export default buildConfig({
|
|||
disable: true,
|
||||
},
|
||||
rateLimit: {
|
||||
window: 900_000, // 15 minutes
|
||||
max: 500,
|
||||
skip: (request) => request.headers["x-rate-limit-skip"] === process.env.RATING_LIMIT_SKIP_TOKEN,
|
||||
skip: () => true,
|
||||
},
|
||||
plugins: [
|
||||
cloudStorage({
|
||||
|
|
|
@ -77,7 +77,6 @@ const injectAuth = async (init?: RequestInit): Promise<RequestInit> => ({
|
|||
headers: {
|
||||
...init?.headers,
|
||||
Authorization: `JWT ${await getToken()}`,
|
||||
"x-rate-limit-skip": process.env.PAYLOAD_RATING_LIMIT_SKIP_TOKEN ?? "",
|
||||
},
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue