mirror of
https://github.com/smogon/pokemon-showdown-loginserver.git
synced 2026-04-29 11:07:26 -05:00
48 lines
1.1 KiB
JavaScript
48 lines
1.1 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';
|
|
|
|
exports.autolockip = [];
|
|
exports.compromisedkeys = [];
|
|
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",
|
|
];
|