GameServerOptions
Properties
Section titled “Properties”games?
Section titled “games?”
optionalgames?:string
Folder of games, one .html file each (names: letters, digits, “-” and “_”). Default: the current folder.
limits?
Section titled “limits?”
optionallimits?:Partial<Limits>
Room limits (players, rooms, sizes, rates); see DEFAULT_LIMITS.
saves?
Section titled “saves?”
optionalsaves?:string|SavePort
Where saved profiles and worlds go: a folder (file saves) or your own SavePort. Default: none, a restart forgets them.
secret?
Section titled “secret?”
optionalsecret?:string|Buffer<ArrayBufferLike>
Signs the players’ pass cookies. Keep it the same across restarts so players keep their seats and saves. Default: random per process.
secure?
Section titled “secure?”
optionalsecure?:boolean
Mark the pass cookie Secure (set this when the site is served over https).
title?
Section titled “title?”
optionaltitle?:string
Heading of the game list page.
trustProxy?
Section titled “trustProxy?”
optionaltrustProxy?:boolean
Behind a proxy on this machine or a private network (Caddy, nginx): take each player’s address from X-Forwarded-For, so the per-address limits count players, not the proxy. Only believed from private or loopback peers.