mirror of
https://github.com/maierfelix/POGOserver.git
synced 2026-04-15 22:25:50 -05:00
- Isomorphic databases - Refactored some player->db keys - Seperated shutdown method - Nearby pidgey instead of rattata - Removed some unused arguments - Player saving is async now - Prettified used db console print
39 lines
1.4 KiB
JavaScript
39 lines
1.4 KiB
JavaScript
export const ASSET_DIGEST_PATH = "asset_digest";
|
|
|
|
export const MINIMUM_CLIENT_VERSION = "0.33.0";
|
|
|
|
export const SERVER_PORT = 3000;
|
|
export const SERVER_HOST_IP = "127.0.0.1";
|
|
export const SERVER_GAME_MODE = 0;
|
|
export const SERVER_TICK_INTERVAL = 1; // better dont change
|
|
export const SERVER_SAVE_INTERVAL = 1e3 * 60; // 1min
|
|
export const SERVER_MAX_CONNECTIONS = 64;
|
|
export const SERVER_PLAYER_CONNECTION_TIMEOUT = 1e3 * 60 * 30; // 30min
|
|
|
|
export const SERVER_LOG_REQUESTS = true;
|
|
|
|
export const SERVER_DEFAULT_CONSOLE_COLOR = 32;
|
|
|
|
// Either mongo or mysql
|
|
export const SERVER_USE_DATABASE = "MONGO";
|
|
|
|
// MONGODB
|
|
export const SERVER_MONGO_PORT = 27017;
|
|
export const SERVER_MONGO_HOST_IP = "127.0.0.1";
|
|
export const SERVER_MONGO_DB_NAME = "pokemongo";
|
|
export const SERVER_MONGO_COLLECTION_USERS = "users";
|
|
|
|
// MYSQL
|
|
export const SERVER_MYSQL_PORT = 3306;
|
|
export const SERVER_MYSQL_HOST_IP = "127.0.0.1";
|
|
export const SERVER_MYSQL_DB_NAME = "pogosql";
|
|
export const SERVER_MYSQL_USERNAME = "USERNAME";
|
|
export const SERVER_MYSQL_PASSWORD = "PASSWORD";
|
|
export const SERVER_MYSQL_TABLE = "users";
|
|
|
|
// account used for pogo-asset-downloader lib
|
|
export const SERVER_POGO_CLIENT_PROVIDER = "GOOGLE"; // either google or ptc
|
|
export const SERVER_POGO_CLIENT_USERNAME = "USERNAME";
|
|
export const SERVER_POGO_CLIENT_PASSWORD = "PASSWORD";
|
|
|
|
export const SERVER_GMAPS_API_KEY = "AIzaSyDF9rkP8lhcddBtvH9gVFzjnNo13WtmJIM"; |