Added a cfg.js.example file so as not to accidentally overwrite user's cfg.js settings that is already on localhost. Updated README.md to reflect the necessary changes. (To start, rename cfg.js.example to cfg.js).

This commit is contained in:
Ru Chern
2016-08-21 09:06:20 +10:00
parent 3562af2a4e
commit 336796e7bf
3 changed files with 55 additions and 2 deletions

50
cfg.js.example Normal file
View File

@@ -0,0 +1,50 @@
export default {
// Server settings
MAX_CONNECTIONS: 64,
PORT: 3000,
GAME_MODE: 0,
SAVE_INTERVAL: 60000,
PLAYER_CONNECTION_TIMEOUT: 1800000,
MINIMUM_CLIENT_VERSION: "0.33.0",
DEFAULT_CONSOLE_COLOR: 32,
TRANSFER_ACCOUNTS: false,
// 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_TABLE: "users",
// MongoDB credentials
MONGO_PORT: 27017,
MONGO_HOST_IP: "127.0.0.1",
MONGO_DB_NAME: "pokemongo",
MONGO_COLLECTION_USERS: "users",
// Used for asset download session
DOWNLOAD_PROVIDER: "GOOGLE",
DOWNLOAD_USERNAME: "USERNAME",
DOWNLOAD_PASSWORD: "PASSWORD",
// Google maps api key
GMAPS_KEY: "AIzaSyDF9rkP8lhcddBtvH9gVFzjnNo13WtmJIM",
// Server debug options
DEBUG_DUMP_PATH: "./logs/",
DEBUG_DUMP_TRAFFIC: true,
DEBUG_LOG_REQUESTS: true,
// Better dont touch these
TICK_INTERVAL: 1,
BOOT_TIMEOUT: 10000,
// Currently supported pokemon
MAX_POKEMON_NATIONAL_ID: 151,
DUMP_ASSET_PATH: "data/"
}