diff options
author | Rigel Kent <sendmemail@rigelk.eu> | 2018-05-22 19:43:13 +0200 |
---|---|---|
committer | Rigel Kent <par@rigelk.eu> | 2018-05-22 19:44:34 +0200 |
commit | ff2c1fe8133f9556f6aaa52058cd8b83c40085e6 (patch) | |
tree | bc92cde25bf5a1d74b1413d7145179ef7abfd670 /config | |
parent | e2f1dad83607aa610ee33b234a81b07664f4304c (diff) | |
download | PeerTube-ff2c1fe8133f9556f6aaa52058cd8b83c40085e6.tar.gz PeerTube-ff2c1fe8133f9556f6aaa52058cd8b83c40085e6.tar.zst PeerTube-ff2c1fe8133f9556f6aaa52058cd8b83c40085e6.zip |
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
Diffstat (limited to 'config')
-rw-r--r-- | config/default.yaml | 4 | ||||
-rw-r--r-- | config/production.yaml.example | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/config/default.yaml b/config/default.yaml index 387acf43d..f43cbaf4b 100644 --- a/config/default.yaml +++ b/config/default.yaml | |||
@@ -60,6 +60,10 @@ admin: | |||
60 | signup: | 60 | signup: |
61 | enabled: false | 61 | enabled: false |
62 | limit: 10 # When the limit is reached, registrations are disabled. -1 == unlimited | 62 | limit: 10 # When the limit is reached, registrations are disabled. -1 == unlimited |
63 | filters: | ||
64 | cidr: # You can specify CIDR ranges to whitelist (empty = no filtering) or blacklist | ||
65 | whitelist: [] | ||
66 | blacklist: [] | ||
63 | 67 | ||
64 | user: | 68 | user: |
65 | # Default value of maximum video BYTES the user can upload (does not take into account transcoded files). | 69 | # Default value of maximum video BYTES the user can upload (does not take into account transcoded files). |
diff --git a/config/production.yaml.example b/config/production.yaml.example index 2f80beede..a9d2c3b80 100644 --- a/config/production.yaml.example +++ b/config/production.yaml.example | |||
@@ -76,6 +76,10 @@ admin: | |||
76 | signup: | 76 | signup: |
77 | enabled: false | 77 | enabled: false |
78 | limit: 10 # When the limit is reached, registrations are disabled. -1 == unlimited | 78 | limit: 10 # When the limit is reached, registrations are disabled. -1 == unlimited |
79 | filters: | ||
80 | cidr: # You can specify CIDR ranges to whitelist (empty = no filtering) or blacklist | ||
81 | whitelist: [] | ||
82 | blacklist: [] | ||
79 | 83 | ||
80 | user: | 84 | user: |
81 | # Default value of maximum video BYTES the user can upload (does not take into account transcoded files). | 85 | # Default value of maximum video BYTES the user can upload (does not take into account transcoded files). |