* Improve curseforge and local indexing This should make curseforge indexing more efficient, and reuses some of the normal local indexing for the queued indexing of recently created mods. * Unify impls for single and multiple routes for mods and versions This uses the same backend for the single and multiple query routes so that they no longer return inconsistent information. * Cache valid curseforge mod ids to reduce request load This caches the ids of minecraft mods and reuses them on indexing to reduce the amount of unused addons that are returned.
37 lines
733 B
Bash
37 lines
733 B
Bash
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
|
|
|
|
MEILISEARCH_ADDR=http://localhost:7700
|
|
MEILISEARCH_KEY=modrinth
|
|
|
|
BIND_ADDR=127.0.0.1:8000
|
|
MOCK_FILE_PATH=/tmp/modrinth
|
|
|
|
STORAGE_BACKEND=local
|
|
|
|
BACKBLAZE_KEY_ID=none
|
|
BACKBLAZE_KEY=none
|
|
BACKBLAZE_BUCKET_ID=none
|
|
|
|
S3_ACCESS_TOKEN=none
|
|
S3_SECRET=none
|
|
S3_URL=none
|
|
S3_REGION=none
|
|
S3_BUCKET_NAME=none
|
|
|
|
INDEX_CURSEFORGE=false
|
|
MAX_CURSEFORGE_ID=450000
|
|
# 1 hour
|
|
LOCAL_INDEX_INTERVAL=3600
|
|
# 12 hours
|
|
EXTERNAL_INDEX_INTERVAL=43200
|
|
|
|
INDEX_CACHE_PATH=/tmp/modrinth-id-cache.json
|
|
|
|
GITHUB_CLIENT_ID=3acffb2e808d16d4b226
|
|
GITHUB_CLIENT_SECRET=none |