-
Notifications
You must be signed in to change notification settings - Fork 2
Configuration file
AngrySnout edited this page Feb 17, 2018
·
5 revisions
This content applies to version 2.4.0 and older versions of the Tracker.
The main configuration file is tracker.json. A sample config file is provided as tracker.default.cfg. The file contains the following properties:
- debug: boolean. If set to 'false', the tracker will try to not crash in case of an error. Default: true.
- pollingInterval: number. How often should empty servers be polled, in seconds. Default: 10.
- extInfoPollingInt: number. How often servers with players should be polled, in seconds. Default: 5.
- endGamePollingInt: number. How often servers with players approaching intermission should be polled, in seconds. Default: 2.
- masterPollingInt: number. How often to update the server list, in seconds. Default: 600.
- savePlayersInt: number. How often to flush players to the database, in seconds. Default: 600.
- cachePurgeInt: number. How often to clear all invalid cache, in seconds. Default: 1800.
-
master: object. Contains options for polling the master server. Properties:
- update: boolean. Whether to update the server list from the master server. Default: true.
- name: string. Master server host name. Default: "sauerbraten.org".
- port: number. Master server port. Default: 28787.
-
irc: object. Contains options for the IRC bot. Properties:
- server: string. The IRC server's host name. Set to null to disable the bot. Default: "irc.gamesurge.net".
- port: number. IRC server port. Default: 6667.
- nick: string. The bot's nick. Default: "MyTracker".
- chan: string. The IRC channel to join. Default: "#mychannel".
- autoReconnect: number. How long to wait before attempting to reconnect to IRC when disconnected, in milliseconds. Default: 15000.
- prefix: string. Prefix of the commands the bot should respond to. Default: ".".
- serverPort: number. HTTP server port. Default: 80.
- secureServerPort: number. HTTPS server port. Default: 443.
- baseElo: number. Elo of new players. Default: 1200.
- databaseConnection: string. The database connection string. Default: "postgres://user:password@server/database".
The tracker supports SSL. At start up it will look for ssl/key.pem, ssl/cert.pem, and ssl/ca.pem. If they are found, they will be loaded and SSL will be enabled. Otherwise, it will be disabled and the server will only listen to serverPort.