Skip to content

Commit

Permalink
fix: update binance base url
Browse files Browse the repository at this point in the history
  • Loading branch information
Myphz committed Oct 2, 2023
1 parent 1809bb0 commit 220ff14
Showing 1 changed file with 18 additions and 10 deletions.
28 changes: 18 additions & 10 deletions src/config/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,36 +4,44 @@ config();

export const PORT = process.env.PORT || 3000;

export const BASE_URL = process.env.NODE_ENV === "production" ? "https://wwwallet.app" : "http://localhost:5000"
export const BASE_URL =
process.env.NODE_ENV === "production"
? "https://wwwallet.app"
: "http://localhost:5000";
export const JWT_KEY = process.env.JWT_KEY || "TEST_KEY";
export const MONGO_URI = process.env.MONGO_URI;
// Amount of seconds a user will live on the database without validating their email
export const USER_EXPIRE_TIME = 86400;
export const USER_EXPIRE_TIME = 86400;

export const EMAIL_SETTINGS = process.env.NODE_ENV === "test" ? {} : JSON.parse(process.env.EMAIL_SETTINGS || "{}");
export const EMAIL_SETTINGS =
process.env.NODE_ENV === "test"
? {}
: JSON.parse(process.env.EMAIL_SETTINGS || "{}");
export const EMAIL = {
noreply: "no-reply@wwwallet.app",
contact: "contact@wwwallet.app"
contact: "contact@wwwallet.app",
};

export const COOKIE_OPTS = {
secure: true,
httpOnly: true,
overwrite: true,
maxAge: 14 * 24 * 60 * 60 * 1000, // 14 days
sameSite: "Lax"
sameSite: "Lax",
};

export const SALT_ROUNDS = 10;

export const BINANCE_BASE_URL = "https://data.binance.com/api/v3/";
export const COINMARKETCAP_BASE_URL = "https://pro-api.coinmarketcap.com/v1/cryptocurrency/";
export const BINANCE_BASE_URL = "https://api.binance.com/api/v3/";
export const COINMARKETCAP_BASE_URL =
"https://pro-api.coinmarketcap.com/v1/cryptocurrency/";
export const GATEIO_BASE_URL = "https://www.gate.io/images/coin_icon/64/";
export const COINMARKETCAP_API_KEY = process.env.COINMARKETCAP_API_KEY || "53e03511-90dc-41eb-8521-e30e6a353f7c";
export const COINMARKETCAP_LIMIT = process.env.NODE_ENV === "test" ? 1 : 5000; // How many crypto to pull from coinmarketcap
export const COINMARKETCAP_API_KEY =
process.env.COINMARKETCAP_API_KEY || "53e03511-90dc-41eb-8521-e30e6a353f7c";
export const COINMARKETCAP_LIMIT = process.env.NODE_ENV === "test" ? 1 : 5000; // How many crypto to pull from coinmarketcap

export const CRYTPO_INFO_FILE = "src/data/cryptoInfo.json";
// Amount of milliseconds the CRYPTO_INFO_FILE is valid for (1 day). If the file is older than that, it will be refreshed.
export const CRYPTO_INFO_REFRESH_TIME = 86400000;

export const TEMPLATES_PATH = "src/templates/";
export const TEMPLATES_PATH = "src/templates/";

0 comments on commit 220ff14

Please sign in to comment.