1
0
mirror of https://github.com/peeringdb/peeringdb.git synced 2024-05-11 05:55:09 +00:00

Implement config driven prefix length validation (#269) (#477)

This commit is contained in:
Matt Griswold
2019-04-18 13:14:52 -05:00
committed by GitHub
parent 115956cecb
commit 1ef4188bb7
5 changed files with 54 additions and 0 deletions

View File

@@ -154,6 +154,10 @@ settings.configure(
CORS_ALLOW_CREDENTIALS=False,
DATA_QUALITY_MAX_PREFIX_V4_LIMIT=500000,
DATA_QUALITY_MAX_PREFIX_V6_LIMIT=500000,
DATA_QUALITY_MIN_PREFIXLEN_V4 = 18,
DATA_QUALITY_MAX_PREFIXLEN_V4 = 28,
DATA_QUALITY_MIN_PREFIXLEN_V6 = 64,
DATA_QUALITY_MAX_PREFIXLEN_V6 = 116,
TUTORIAL_MODE=False,
RATELIMITS={
"view_affiliate_to_org_POST": "100/m",