config.js 500 B

123456789101112
  1. const path = require("path");
  2. const host = process.env.productHost || "localhost";
  3. module.exports = {
  4. productType: process.env.productType || "default",
  5. url: `http://${host}`,
  6. host: `${host}`,
  7. ICON_APP_PORT: process.env.ICON_APP_PORT || 4843,
  8. rootRepoPath: path.resolve(__dirname, "../../public/resource/repository"),
  9. salt: "NXArUDVwNlg1cGl2NUxpcTVhU241YmlGNllDOA==",
  10. autoLoginSessionExpires: 7 * 24 * 60 * 60 * 1000, // 7天
  11. defaultExpiresTime: +new Date("01-Jan-1970 00:00:10"),
  12. };