Configuration
Eranio
Configuration
Complete reference for all settings, environment variables, caching behaviour, and detailed per-provider setup with error documentation.
Admin Panel Settings
Open settings via the gear icon on the Mod Browser page. Changes save immediately.
Settings Reference
| Setting | Default | Range | Env Variable | Description |
|---|---|---|---|---|
| Cache Duration | 30 min | 0-1440 min | MODS_CACHE_DURATION (seconds, default 1800) |
How long API responses are cached |
| Request Timeout | 10 sec | 1-30 sec | MODS_REQUEST_TIMEOUT |
Max wait for platform API response |
| Mods Per Page | 20 | 5-100 | MODS_PER_PAGE |
Results per browse page |
| Auto-Replace | On | Toggle | MODS_AUTO_REPLACE_VERSIONS |
Remove old versions on update |
| CurseForge API Key | - | Text | CURSEFORGE_API_KEY |
Required for CurseForge (password field, reveal button) |
| Modtale API Key | - | Text | MODTALE_API_KEY |
Optional for Modtale (password field, reveal button) |
Detailed Cache TTLs
| What Is Cached | Cache Key Pattern | TTL |
|---|---|---|
| Browse/search results | browse_mods__{uuid}__{provider}__{gameVersion}__{loader}__{hash}__{page} |
15 minutes |
| Installed mods list | mods_server_{uuid} |
10 minutes |
| Version lists per mod | mod_versions_cache_{uuid}_{provider}_{modId} |
1 hour |
| Update metadata | mod_update__{uuid}__{modId} |
24 hours |
| Detected MC version | minecraft_version_{uuid} |
5 minutes |
| Enriched installed data | game_mods_data__{uuid} |
24 hours |
| Server mod filenames | server_{uuid}_mod_filenames |
1 hour |
| Console widget updates | mod_updates_{uuid} |
Widget-specific |
The cache uses a file-based system with prefix GM_. SafeCacheService auto-creates directories with 0755 permissions. Flushing iterates all tracked keys.
All Environment Variables
| Variable | Default | Description |
|---|---|---|
MODS_CACHE_DURATION |
1800 |
Cache duration in seconds |
MODS_REQUEST_TIMEOUT |
10 |
API timeout in seconds |
MODS_PER_PAGE |
20 |
Mods per browse page |
MODS_AUTO_REPLACE_VERSIONS |
true |
Auto-remove old versions |
CURSEFORGE_API_KEY |
- | CurseForge API key (shared with Modpacks + Plugins) |
MODTALE_API_KEY |
- | Modtale API key (optional) |
After changes: php artisan config:clear
Own update source (from 2.2.0)
The mod installer offers mods by Eranio on Minecraft servers as provider Eranio. The source is a version file on eranio.de that contains mods only (the mod installer never sees plugins, the plugin installer never sees mods). As long as there are no own mods, the Eranio choice is there, the search stays empty, there is no update display and no installation, and no error appears.
When mods exist: search lists the public mods with logo and text. The version window lists all versions, matching ones first, filtered by the server's Minecraft version and loader (Fabric, Quilt, Forge, NeoForge). Every version carries a label (other game version, beta, alpha) and shows the change text and the required Java version. If a version has several files, the installer picks the file of your server's loader. Installation, update and going back to an older version work like in the plugin installer: download the file, check SHA-256, swap it directly in the mods/ folder, remove the old file.
Only mods whose descriptor (fabric.mod.json, mods.toml, neoforge.mods.toml) names a configured author (default Eranio) are checked against the source. There is one request per check with a cache, and none at all when no own mod is on the server. Private mods never appear in search and can only be updated with an access key.
| Setting | Default | Environment variable |
|---|---|---|
| Check own mods against eranio.de | On | MODS_OWN_SOURCE_ENABLED |
| Own update sources | https://eranio.de/downloads/minecraft/mods.json |
MODS_OWN_SOURCE_URLS |
| Authors of own mods | Eranio |
MODS_OWN_SOURCE_AUTHORS |
| Cache | 30 minutes | MODS_OWN_SOURCE_CACHE_MINUTES |
| Access key for private mods | empty | MODS_OWN_SOURCE_KEY (encrypted) |
Editions per loader (from 2.2.1)
Many mods exist in several editions, for example 1.4-fabric and 1.4-neoforge. The installer knows the loader of your server and prefers the matching edition:
| Server loader | Order of preference |
|---|---|
| Fabric | Fabric |
| Quilt | Quilt, Fabric |
| Forge | Forge |
| NeoForge | NeoForge |
| not detected | no merging |
- One row per version: Editions with the same base version are merged, the version window shows only the best edition, in the selection with the note Edition: NeoForge. Editions for foreign loaders are never offered.
- Game versions as a range: The version window shows the matching game versions as a range, for example MC 26.1.1 to 26.3, a single version as MC 26.3, gaps as except 26.2.
- A wrong edition counts like an update: If a worse matching edition sits in the
mods/folder (for example a Fabric jar on a Quilt server) or an edition for another loader (for example Forge on a NeoForge server), it counts like an update: the update counter, the update tile, the badge on the Installed tab and the Updates filter include it. - Orange badge: The row shows the badge Install matching edition (NeoForge) or Wrong edition (Forge), matching: NeoForge instead of Update available. The button installs the matching edition directly into
mods/, removes the old jar and updates the row. - Newer base version: If a newer base version exists, it stays a normal update and installs the newest matching edition. If no matching edition exists, nothing is offered.
- Cache button: The Cache button also clears the cached version file of the own source, so changed details (for example a new logo) show up immediately.
Provider: Modrinth (Detailed)
Overview
No configuration required. Recommended platform for best experience.
Technical Specifications
| Property | Value |
|---|---|
| API Base | https://api.modrinth.com/v2 |
| Authentication | None |
| Search Method | POST /search with facets JSON |
| Auto-Facets | [["project_type:mod"], ["server_side:required","server_side:optional"]] |
| Download Method | Direct CDN URL from files[0].url |
| Integrity | SHA-1 hash available for verification |
| Rate Limits | Fair use (no published hard limit) |
Search Capabilities
- Full text search across names, slugs, descriptions
- Minecraft version filter: Passed as facet
- Mod loader filter: Passed as facet. Values
'all'and'any'are automatically excluded - Results include: icon URL, name, author, description, downloads, date created, slug
Dependency Resolution
- Dependencies with
dependency_type === 'required'are detected - If a specific
version_idis in the dependency data → that exact version is fetched - If no version_id → plugin searches for the latest compatible version
- Dependencies installed before or alongside the main mod
Modrinth-Specific Errors
| Error / Symptom | Cause | Solution |
|---|---|---|
| No search results | API temporarily unavailable | Check status.modrinth.com, retry later |
| Download failed | CDN URL expired or unreachable | Clear cache, re-search, retry |
| Empty version list | No server-side versions for your MC version + loader | Try different version/loader filter |
| Slow responses | API under load | Increase timeout to 20-30s |
| Facet error | Invalid loader or version value sent | Clear cache, check version format |
Provider: CurseForge (Detailed)
Overview
Requires free API key. Largest mod library. Get key at console.curseforge.com.
Getting Your API Key
- Visit console.curseforge.com
- Create account (free) or sign in
- Go to "API Keys" → create new key
- Copy key → paste in plugin settings CurseForge API Key field
- Click Save
This key is shared across Game Mods, Modpacks, and Plugins via
CURSEFORGE_API_KEY.
Technical Specifications
| Property | Value |
|---|---|
| API Base | https://api.curseforge.com/v1 |
| Authentication | x-api-key header |
| Game IDs | Minecraft = 432, Hytale = 70216 |
| Class ID | 9137 (Mods) |
| Max Page Size | 50 items per request |
| Total Results Cap | 10,000 maximum |
| Description Enrichment | Separate /mods/{modId}/description call (HTML) |
| Slug Helper | /mods/{modId} fetch for URL generation |
Search Capabilities
- Full text search
- Sort options (12 available):
| Sort Field | ID | Default Sort Order |
|---|---|---|
| Featured | 1 | Descending (used when query present) |
| Popularity | 2 | Descending (used when no query) |
| LastUpdated | 3 | Descending |
| Name | 4 | Ascending (only one that's ascending) |
| Author | 5 | Descending |
| TotalDownloads | 6 | Descending |
| Category | 7 | Descending |
| GameVersion | 8 | Descending |
| EarlyAccess | 9 | Descending |
| FeaturedReleased | 10 | Descending |
| ReleasedDate | 11 | Descending |
| Rating | 12 | Descending |
- Mod loader enum:
| Loader | CurseForge ID |
|---|---|
| Forge | 1 |
| Cauldron | 2 |
| LiteLoader | 3 |
| Fabric | 4 |
| Quilt | 5 |
| NeoForge | 6 |
- Version extraction: From
gameVersionsarray, filtered by\d+\.\d+regex
Dependency Resolution
relationType=3= required dependency- Resolution is recursive (dependencies of dependencies are resolved too)
- Each dependency resolved by CurseForge mod ID
Special: Manual Download Required
Some mod authors restrict direct downloads. When downloadUrl is empty:
- Mod flagged as
requires_manual_download: true - Plugin shows link to CurseForge page for manual download
- This is a CurseForge policy, not a plugin limitation
CurseForge-Specific Errors
| Error / Symptom | Cause | Solution |
|---|---|---|
| "CurseForge API key not set" | No key configured | Enter key in settings or set CURSEFORGE_API_KEY env var |
| HTTP 403 Forbidden | Key invalid or lacks permissions | Re-generate key at console.curseforge.com |
| HTTP 429 Too Many Requests | Rate limit exceeded | Increase cache duration, wait, reduce frequency |
| Empty download URL | Author restricted downloads | Download manually from CurseForge website |
| "CurseForge request failed" | Network/API error | Check connectivity to api.curseforge.com, increase timeout |
| Description not loading | Enrichment API call failed | Non-critical, mod still works |
| Slow responses | CurseForge under heavy load | Increase timeout to 20-30s |
| Wrong game results | Game ID mismatch | Verify egg tags match expected game |
Provider: Modtale (Detailed)
Overview
API key optional but provides extended rate limits.
Getting API Key (Optional)
- Visit modtale.net/dashboard/developer
- Register developer account
- Generate API key
- Enter in plugin settings Modtale API Key field
Technical Specifications
| Property | Value |
|---|---|
| API Base | https://api.modtale.net/api/v1 |
| CDN | https://cdn.modtale.net/ |
| Authentication | Optional X-MODTALE-KEY header |
| Pagination | 0-based (page 0 = first page, unlike Modrinth/CurseForge which use 1) |
| Icons | cdn.modtale.net/{thumbnail_path} |
| Downloads | cdn.modtale.net/{file_download_path} |
Modtale-Specific Errors
| Error / Symptom | Cause | Solution |
|---|---|---|
| Slow results | Modtale API slower than others | Increase timeout |
| Rate limited | Too many requests without key | Add Modtale API key |
| CDN download failed | cdn.modtale.net unreachable |
Check firewall, retry |
| No dependencies shown | Modtale API doesn't provide dependency info | Install dependencies manually |
Search Query Sanitisation
All platforms: characters < > { } ' " are automatically stripped from search queries.
Troubleshooting
Settings Not Saving
- Check
storage/is writable php artisan config:clear- Check browser console (F12) for JS errors
Cache Not Clearing
- SafeCacheService
flush()iterates all tracked keys - If
storage/framework/cache/is missing or unwritable, cache operations fail - Error notification shows
$e->getMessage()from the caught exception - Log: "Error clearing cache and scanning mods"
API Responses Returning Old Data
- Each cache type has its own TTL (see table above)
- Update metadata is cached 24 hours, click Clear Cache for immediate refresh
- Browse results cached 15 minutes, installed list 10 minutes