mirror of
https://github.com/simon987/nyaa.git
synced 2025-12-13 23:29:02 +00:00
[Config change] Upload ratelimit for non-trusted uploaders (#384)
* Implement upload ratelimit for non-trusted uploaders Users may upload X torrents in Y minutes after which they will have to wait Z minutes between uploads. * Show torrent period count when ratelimited * Only ratelimit new accounts
This commit is contained in:
committed by
Arylide
parent
37546354a7
commit
de1fd2f1bc
@@ -90,6 +90,15 @@ TRACKER_API_AUTH = 'topsecret'
|
||||
## Account ##
|
||||
#############
|
||||
|
||||
# Limit torrent upload rate
|
||||
RATELIMIT_UPLOADS = True
|
||||
RATELIMIT_ACCOUNT_AGE = 7 * 24 * 3600
|
||||
# After uploading MAX_UPLOAD_BURST torrents within UPLOAD_BURST_DURATION,
|
||||
# the following uploads must be at least UPLOAD_TIMEOUT seconds after the previous upload.
|
||||
MAX_UPLOAD_BURST = 5
|
||||
UPLOAD_BURST_DURATION = 45 * 60
|
||||
UPLOAD_TIMEOUT = 15 * 60
|
||||
|
||||
# Torrents uploaded without an account must be at least this big in total (bytes)
|
||||
# Set to 0 to disable
|
||||
MINIMUM_ANONYMOUS_TORRENT_SIZE = 1 * 1024 * 1024
|
||||
|
||||
Reference in New Issue
Block a user