Bump ratelimit to 200 RPM, allow specified IPs to have lax ratelimit restrictions, and allow wildcard for CORS

This commit is contained in:
Geometrically
2020-12-31 18:54:58 -07:00
parent 7a86d272bb
commit 0efeffeaa3
4 changed files with 274 additions and 104 deletions

5
.env
View File

@@ -1,7 +1,6 @@
DEBUG=true
RUST_LOG=info,sqlx::query=warn
CORS_ORIGINS='["http://localhost:3000","https://modrinth.com"]'
CDN_URL=https://cdn.modrinth.com
DATABASE_URL=postgresql://labrinth:labrinth@localhost/labrinth
@@ -31,4 +30,6 @@ LOCAL_INDEX_INTERVAL=3600
VERSION_INDEX_INTERVAL=1800
GITHUB_CLIENT_ID=3acffb2e808d16d4b226
GITHUB_CLIENT_SECRET=none
GITHUB_CLIENT_SECRET=none
RATE_LIMIT_IGNORE_IPS='[]'