PocketRelay / Server

Mass Effect 3 Rust Server Emulator, LAN and WAN private server
https://pocket-relay.pages.dev/
MIT License
12 stars 4 forks source link

feat: new public games api configuration #67

Closed jacobtread closed 3 months ago

jacobtread commented 3 months ago

Adds the option to allow requesting the actively running list of games from the server without requiring authentication

This adds two new config options under a new api section, below are the default values:

{
    "api": {
        "public_games": false,
        "public_games_hide_players": true
    }
}

Setting public_games to true will allow anyone to request the /api/games endpoint without requiring auth, by default the details about the players of the game are not included in this response unless the user is authenticated. You can allow unauthenticated users to see the players in each game by setting public_games_hide_players to false.

[!WARNING] Set public_games_hide_players to false at your own discretion, accounts created through the in-game account creator will expose the user email as their player name if this is enabled (Unless they change their name in the server dashboard which is recommended)