-
Notifications
You must be signed in to change notification settings - Fork 197
/
cfg.js.example
66 lines (54 loc) · 1.5 KB
/
cfg.js.example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
import fs from "fs";
export default {
VERSION: JSON.parse(fs.readFileSync("./package.json")).version,
// show greeting
GREET: true,
// Api things
API_ENABLE: true,
API_USERNAME: "root",
API_PASSWORD: "",
API_ALLOWED_HOSTS: ["localhost", "127.0.0.1"],
// Server settings
MAX_CONNECTIONS: 64,
PORT: 3000,
// If using vmware, vps or multiple network adapters, set the related ip here
// otherwise leave it blank
LOCAL_IP: "",
GAME_MODE: 0,
SAVE_INTERVAL: 1e4,
// Better dont touch these
TICK_INTERVAL: 1,
// Timeouts
BOOT_TIMEOUT: 1e4,
PLAYER_CONNECTION_TIMEOUT: 1e3 * 60 * 30,
CELL_TIMEOUT: 1e3 * 60,
MINIMUM_CLIENT_VERSION: "0.35.0",
DEFAULT_CONSOLE_COLOR: 32,
TRANSFER_ACCOUNTS: false,
// Server debug options
DEBUG_DUMP_PATH: "logs/",
DEBUG_DUMP_TRAFFIC: true,
DEBUG_LOG_REQUESTS: true,
// Choose a database type
DATABASE_TYPE: "MYSQL",
// MySQL credentials
MYSQL_PORT: 3306,
MYSQL_HOST_IP: "127.0.0.1",
MYSQL_DB_NAME: "pogosql",
MYSQL_USERNAME: "root",
MYSQL_PASSWORD: "",
MYSQL_GYM_TABLE: "gym",
MYSQL_USERS_TABLE: "users",
MYSQL_SPAWN_TABLE: "spawn_points",
MYSQL_POKESTOP_TABLE: "pokestop",
MYSQL_OWNED_PKMN_TABLE: "owned_pkmn",
// Used for asset download session
DOWNLOAD_PROVIDER: "GOOGLE",
DOWNLOAD_USERNAME: "USERNAME",
DOWNLOAD_PASSWORD: "PASSWORD",
// Google maps api key
GMAPS_KEY: "AIzaSyDF9rkP8lhcddBtvH9gVFzjnNo13WtmJIM",
// Currently supported pokemon
MAX_POKEMON_NATIONAL_ID: 151,
DUMP_ASSET_PATH: "data/"
}