mirror of
https://github.com/simon987/nyaa.git
synced 2025-12-13 15:19:03 +00:00
Add (optional) validation for minimum anonymous torrent size (#342)
MINIMUM_ANONYMOUS_TORRENT_SIZE can be used to require a minimum total size of torrents uploaded by anonymous users (ie. without accounts). Sets up a "framework" for post-WTForm torrent validation as well; this can easily be extended into filename blacklists and such.
This commit is contained in:
committed by
Arylide
parent
48d4217f02
commit
39fcfc0058
@@ -46,6 +46,9 @@ ENFORCE_MAIN_ANNOUNCE_URL = False
|
||||
MAIN_ANNOUNCE_URL = 'http://127.0.0.1:6881/announce'
|
||||
TRACKER_API_URL = 'http://127.0.0.1:6881/api'
|
||||
TRACKER_API_AUTH = 'topsecret'
|
||||
# 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
|
||||
|
||||
BACKUP_TORRENT_FOLDER = 'torrents'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user