A server for Minecraft modders that manages all your mod updates.
682
A server for Minecraft modders that manages all your mod updates. It provides a web interface and REST API to manage everything. This can be used directly for the Forge Update Checker.
| Method | Path | Description |
|---|---|---|
GET | /mods | List all mods. |
GET | /mods/MODNAME | Get a specific mod. |
GET | /updates?amount=16&page=0 | Show update entries for all mods. Optional query parameters: amount for the update count per page, page for the page. |
GET | /updates/MODNAME?amount=16&page=0 | Show update entries. Optional query parameters: amount for the update count per page, page for the page. |
GET | /updates/MODNAME/UPDATE_ID | Show update entry (updateid mcversion, version, updatemessage, tags[latest, ...]). |
POST | /updates/MODNAME | Add a new update. Requires an apikey in header. See Update. |
POST | /updates/MODNAME/UPDATE_ID | Updates an update. |
DELETE | /updates/MODNAME/UPDATE_ID | Remove an update. Requires an apikey in header. |
DELETE | /mods/MODNAME | Remove a mod. Requires an apikey in header. |
POST | /mods/add | Add a new mod. Requires an apikey in header. See Mod. |
POST | /mods/edit/MODNAME | Edit an existing mod. Requires an apikey in header. See Mod. |
GET | /forge/MODNAME | Forge update check format. |
GET | /latest/MODNAME | General update format. |
GET | /apikeys | List all apikeys. |
POST | /apikeys/add | Add a new apikey. See ApiKey. |
DELETE | /apikeys/APIKEY | Remove an apikey. |
Example Update
{
"publishDate": "2019-10-10T14:48:00", // The publishing date (used to order the updates).
"gameVersion": "1.14.4", // The game version.
"modLoader": "forge", // The mod loader.
"version": "1.0.0", // The mod version.
"updateMessages": ["Updated to 1.14.4", "Added readme.md"], // The update messages (Changelog etc.).
"releaseType": "release", // The release type [alpha, beta, release]. Default value: "release".
"tags": ["recommended"] // Additional tags e.g. recommended.
}
Example Mod
{
"modID": "examplemod", // The mod ID (used to identify the mod)
"name": "Example Mod", // The name of the mod
"description": "Just an example mod", // The mod description
"websiteURL": "https://example.com/examplemod", // The URL to the mods website
"downloadURL": "https://example.com/examplemod/files", // The URL to the mods download page
"issueURL": "https://example.com/examplemod/issues" // The issue tracker url of this mod
}
Example ApiKey
{
"mods": ["examplemod"] // The mods that this key has access to ("*" for every mod)
}
yarn install
cd frontend
yarn install
yarn mongo
yarn dev
cd frontend
yarn serve
or
mongod --dbpath <PATH_TO_DB>
yarn dev
cd frontend
yarn serve
The REST API should be available at port 8088 and the web interface is usually available at port 8080 (If not already in use).
| Variable | Description | Default Value |
|---|---|---|
DB_IP | The IP of the MongoDB database | localhost |
DB_PORT | The port of the MongoDB database | 27017 |
DB_NAME | The database name | updates |
PORT | The webserver port | 8088 |
MASTER_KEY | The master apiKey (e.g. 62387f34-7678-4737-bfc4-2cb600337541) | |
LOGIN_USERNAME | The username for the web UI login | |
LOGIN_PASSWORD | The password for the web UI login |
You can log in to the web UI via the credentials provided by the environment variables or with the username apikey and your apikey as password.
Content type
Image
Digest
Size
46.3 MB
Last updated
over 5 years ago
docker pull henkelmax/mod-update-server