ServerHttpOptions beta
Interface of @v12-engine/engine/server
export interface ServerHttpOptionsWhere the addresses are, and who may read the numbers (GameServerOptions.http)
Members
games
games?: string | false;The address of the list of its games, for a page to find one (GameListing, JSON, readable from any page). /games when left out; false for none
health
health?: string | false;The address that says whether it is well. /health when left out; false for none
metrics
metrics?: string | false;The address of its numbers. /metrics when left out; false for none
metricsKey
metricsKey?: string;What reading the numbers takes (Authorization: Bearer <key>): they say how many play, and when. Anyone who can reach the address when left out: keep it behind the proxy then
ratings
ratings?: string | false;The address of the best of each mode (/ratings?mode=melee&n=10&player=<rated id>: the top and the player's own place, JSON, readable from any page), where the server keeps ratings. /ratings when left out; false for none