mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 02:39:33 +02:00
feature: IP filtering on signup page
disable registration form on IP not in range checking the CIDR list before filtering with it placing the cidr filters as an attribute object in the config
This commit is contained in:
parent
e2f1dad836
commit
ff2c1fe813
13 changed files with 105 additions and 9 deletions
|
@ -150,7 +150,13 @@ const CONFIG = {
|
|||
},
|
||||
SIGNUP: {
|
||||
get ENABLED () { return config.get<boolean>('signup.enabled') },
|
||||
get LIMIT () { return config.get<number>('signup.limit') }
|
||||
get LIMIT () { return config.get<number>('signup.limit') },
|
||||
FILTERS: {
|
||||
CIDR: {
|
||||
get WHITELIST () { return config.get<string[]>('signup.filters.cidr.whitelist') },
|
||||
get BLACKLIST () { return config.get<string[]>('signup.filters.cidr.blacklist') }
|
||||
}
|
||||
}
|
||||
},
|
||||
USER: {
|
||||
get VIDEO_QUOTA () { return config.get<number>('user.video_quota') }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue