pokemon-showdown-loginserver/config/config-example.js
2021-10-30 21:19:47 -05:00

57 lines
1.4 KiB
JavaScript

// MySQL DB settings.
exports.mysql = {
charset: "utf8",
database: "ps",
password: "",
prefix: "",
user: "root",
};
// To use for password hashing.
exports.passwordSalt = 10;
// routes
exports.routes = {
root: "pokemonshowdown.com",
};
exports.mainserver = 'showdown';
exports.serverlist = '/var/www/html/play.pokemonshowdown.com/config/servers.inc.php';
// absolute path to your PS instance. can use the checked-out client that the client clones in.
exports.pspath = '/var/www/html/play.pokemonshowdown.com/data/pokemon-showdown';
/** ips to automatically lock
* @type {string[]} */
exports.autolockip = [];
/** compromised private keys
* @type {string[]} */
exports.compromisedkeys = [];
/** proxies to trust x-forwarded-for from
* @type {string[]} */
exports.trustedproxies = [];
/**
* [Places to allow cors requests from, prefix to use][]
* @type {[RegExp, string][]}
*/
exports.cors = [
[/^http:\/\/smogon\.com$/, "smogon.com_"],
[/^http:\/\/www\.smogon\.com$/, "www.smogon.com_"],
[/^http:\/\/logs\.psim\.us$/, "logs.psim.us_"],
[/^http:\/\/logs\.psim\.us:8080$/, "logs.psim.us_"],
[/^http:\/\/[a-z0-9]+\.psim\.us$/, ""],
[/^http:\/\/play\.pokemonshowdown\.com$/, ""],
];
/**
* array of user IDs who will be given sysop powers on all servers they log into via this loginserver
* @type {string[]}
*/
exports.sysops = [];
// Private keys to use for validating assertions.
exports.privatekeys = [
"key here",
];