-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
56 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash | ||
|
||
pyver="$(python3 -V 2>&1 | grep -Po '(?<=Python )(.+)')" | ||
requiredver="3.4" | ||
|
||
if [[ -z "$pyver" ]] | ||
then | ||
echo "Python 3 does not appear to be installed." | ||
else | ||
if [[ $pyver =~ $requiredver ]] | ||
then | ||
echo "Python Version is $pyver" | ||
echo "Installing Requirements..." | ||
pip install -r requirements.txt | ||
python3 runserver.py | ||
else | ||
echo "Minimum Python version required is $requiredver" | ||
fi | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# IW4MAdmin-Master | ||
### Purpose | ||
**IW4MAdmin-Master** is the master list for all running instance of [IW4MAdmin](https://github.com/RaidMax/IW4M-Admin/) | ||
Each **IW4MAdmin** instance sends a heartbeat approximately every 30 seconds which is recieved by this service and stored. | ||
**IW4MAdmin-Master** is also responsible for maintaining the version information and providing current translation strings. | ||
|
||
### Requirements | ||
`Python 3.8.x` or newer | ||
|
||
### Start (local) | ||
```bash | ||
chmod +x launch.sh | ||
./launch.sh | ||
``` | ||
|
||
### Endpoints | ||
Unless otherwise specified, all endpoints return JSON | ||
#### /Health | ||
Health status of the master | ||
#### /Instance | ||
All active instances | ||
#### /Version | ||
Current stable and pre-release version | ||
#### /History | ||
Client and server count history | ||
#### /Localization | ||
Latest translation strings | ||
|
||
### UI | ||
#### Home | ||
Zoomable plot of servers, client, and instance counts over an interval | ||
#### /servers | ||
Simple list of all server information grouped by game name |
File renamed without changes.