diff --git a/README.md b/README.md new file mode 100644 index 0000000..a4a4994 --- /dev/null +++ b/README.md @@ -0,0 +1,19 @@ +# OpenJam Servers + +A collection of open source servers for FreeJam games + +## Usage + +### CardLife + +To use get CardLife to use these servers, replace the ServerConfig.json file in the game files with [this ServerConfig.json](assets/cardlife/ServerConfig.json). + +### Robocraft + +??? (This might require modifying `/etc/hosts`... remember to mention the Windows equivalent) + +## Privacy + +### Authentication + +Due to current technical limitations, CardLife authentication uses your IP address to give you a consistent login user. diff --git a/assets/cardlife/ServerConfig.json b/assets/cardlife/ServerConfig.json new file mode 100644 index 0000000..eea6377 --- /dev/null +++ b/assets/cardlife/ServerConfig.json @@ -0,0 +1,11 @@ +{ + "AuthUrl": "https://live-auth.cl.ngni.us/api/", + "LobbyUrl": "https://live-lobby.cl.ngni.us/api/", + "InventoryUrl": "https://live-save.cl.ngni.us/api/", + "FallbackAuthUrl": "https://proxy.cl.ngni.us:8010/api/", + "FallbackLobbyUrl": "https://proxy.cl.ngni.us:8030/api/", + "FallbackInventoryUrl": "https://proxy.cl.ngni.us:8020/api/", + "GameServerPath": "/", + "GameServerExe": "/CardlifeGameServer.exe", + "PhotonUrl": "http://photon.cardlifegame.com" +} diff --git a/assets/cardlife/ServerConfig.json.local b/assets/cardlife/ServerConfig.json.local new file mode 100644 index 0000000..f1fec58 --- /dev/null +++ b/assets/cardlife/ServerConfig.json.local @@ -0,0 +1,11 @@ +{ + "AuthUrl": "http://127.0.0.1:8001/api/", + "LobbyUrl": "http://127.0.0.1:8002/api/", + "InventoryUrl": "http://127.0.0.1:8003/api/", + "FallbackAuthUrl": "https://proxy.cl.ngni.us:8010/api/", + "FallbackLobbyUrl": "https://proxy.cl.ngni.us:8030/api/", + "FallbackInventoryUrl": "https://proxy.cl.ngni.us:8020/api/", + "GameServerPath": "/", + "GameServerExe": "/CardlifeGameServer.exe", + "PhotonUrl": "http://photon.cardlifegame.com" +} diff --git a/auth/Rocket.toml b/auth/Rocket.toml new file mode 100644 index 0000000..e466d38 --- /dev/null +++ b/auth/Rocket.toml @@ -0,0 +1,12 @@ +## defaults for _all_ profiles +[default] +address = "127.0.0.1" +port = 8001 + +## set only when compiled in debug mode, i.e, `cargo build` +[debug] +port = 8001 + +## set only when compiled in release mode, i.e, `cargo build --release` +[release] +address = "0.0.0.0" diff --git a/auth/build_arm64.sh b/auth/build_arm64.sh new file mode 100755 index 0000000..7010ff6 --- /dev/null +++ b/auth/build_arm64.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +cargo build --release --target aarch64-unknown-linux-musl