mirror of
https://github.com/simon987/nyaa.git
synced 2025-12-13 15:19:03 +00:00
config: add anonymous upload/registration limiting
This commit is contained in:
@@ -14,6 +14,16 @@ MAINTENANCE_MODE_MESSAGE = 'Site is currently in read-only maintenance mode.'
|
||||
# Allow logging in during maintenance (without updating last login date)
|
||||
MAINTENANCE_MODE_LOGINS = True
|
||||
|
||||
# Block *anonymous* uploads completely
|
||||
RAID_MODE_LIMIT_UPLOADS = False
|
||||
# Message prepended to the full error message (account.py)
|
||||
RAID_MODE_UPLOADS_MESSAGE = 'Anonymous uploads are currently disabled.'
|
||||
|
||||
# Require manual activation for newly registered accounts
|
||||
RAID_MODE_LIMIT_REGISTER = False
|
||||
# Message prepended to the full error message (account.py)
|
||||
RAID_MODE_REGISTER_MESSAGE = 'Registration is currently being limited.'
|
||||
|
||||
#############
|
||||
## General ##
|
||||
#############
|
||||
|
||||
Reference in New Issue
Block a user