Class LimitsConfig

Properties

banAfterFailedRequests: number = ...

The amount of failed requests after which an IP address is banned.

60

LIMITS_BAN_AFTER_FAILED_REQUESTS

banDurationMinutes: number = ...

The duration in minutes for which an IP address is banned.

60

LIMITS_BAN_DURATION_MINUTES

banFailedRequestsResetAfterMinutes: number = ...

The duration in minutes after which failed requests are forgotten.

5

LIMITS_BAN_FAILED_REQUESTS_RESET_AFTER_MINUTES

decryptionRequestMultiplier: number = ...

The multiplier for the amount of tokens a decryption request costs.

0.05

LIMITS_DECRYPTION_REQUEST_MULTIPLIER

disabled: boolean = ...

Whether the limits are disabled.

false

LIMITS_DISABLED

maxRequestsPerIpPerMinute: number = ...

The maximum amount of requests per IP address per minute.

300

LIMITS_MAX_REQUESTS_PER_IP_PER_MINUTE

maxStorageTimeDays: number = ...

The maximum amount of days a note can be stored.

30

LIMITS_MAX_STORAGE_TIME_DAYS

maxTokensPerIp: number = ...

The maximum amount of tokens an IP address can use.

8000000

LIMITS_MAX_TOKENS_PER_IP

maxTokensPerRequest: number = ...

The maximum amount of tokens a single request can use.

8000000

LIMITS_MAX_TOKENS_PER_REQUEST

minTokensPerCreate: number = ...

If the content of a note is smaller than this value, it will be treated as if it was this value.

1000

LIMITS_MIN_TOKENS_PER_CREATE

tokensExpireAfterMinutes: number = ...

The time in minutes after which token records expire. If you make a request, the app will remember your IP address + the used tokens for this time. Tokens are practically the same as the byte count of the content from a note.

60

LIMITS_TOKENS_EXPIRE_AFTER_MINUTES