global.app_config.ydn = {
  Nats: {
    servers: ["nats://127.0.0.1:4222"],
  },
  //nats微服务代理,没有则不使用代理
  nats_proxy: {
    caiminbao: "https://app.ydniu.com/graphql",
    info: "https://m.ydn.com/graphql",
    sport: "https://m.ydn.com/graphql",
    xcx: "https://app.ydniu.com/graphql",
    lotteryshoptest: "https://app.ydniu.com/graphql",
    lotteryshop: "https://app.ydniu.com/graphql",
  },
  session: {
    info: {
      saveUninitialized: false,
      secret: "iooxfi38234jd",
      resave: false,
      cookie: {
        path: "/",
        httpOnly: false,
        maxAge: 3600000,
      },
      rolling: false,
    },
  },
  session_redis: {
    url: "redis://127.0.0.1:6379",
    connect_timeout: 15000,
    enable_offline_queue: true,
    retry_unfulfilled_commands: true,
    ttl: 86400,
    retry_strategy: (options) => {
      // reconnect after
      return Math.max(options.attempt * 100, 3000);
    },
  },
  Redis_Api: {
    url: "redis://127.0.0.1:6379",
    connect_timeout: 15000,
    enable_offline_queue: true,
    retry_unfulfilled_commands: true,
    ttl: 86400,
    retry_strategy: (options) => {
      // reconnect after
      return Math.max(options.attempt * 100, 3000);
    },
  },
  //Redis量太多,将redis多分两个
  Redis_Api_2: {
    url: "redis://127.0.0.1:6379",
    connect_timeout: 15000,
    enable_offline_queue: true,
    retry_unfulfilled_commands: true,
    ttl: 86400,
    retry_strategy: (options) => {
      // reconnect after
      return Math.max(options.attempt * 100, 3000);
    },
  },
  //Redis量太多,将redis多分两个
  Redis_Api_3: {
    url: "redis://127.0.0.1:6379",
    connect_timeout: 15000,
    enable_offline_queue: true,
    retry_unfulfilled_commands: true,
    ttl: 86400,
    retry_strategy: (options) => {
      // reconnect after
      return Math.max(options.attempt * 100, 3000);
    },
  },
  mongodb_talk: {
    // "URL": "mongodb://118.89.26.241:30675/db_talk?authSource=admin",
    // "DB": "db_talk",
    // "HOST": "118.89.26.241",
    // "PORT": 30675,
    // "USERNAME": "talk",
    // "PASSWORD": "ydniu20200611"
    URL: "mongodb://118.89.26.241:30675/db_talk?authSource=admin",
    opts: {
      useCreateIndex: true,
      user: "talk",
      pass: "ydniu20200611",
      socketTimeoutMS: 15000,
      keepAlive: true,
      useNewUrlParser: true,
      useUnifiedTopology: true,
      serverSelectionTimeoutMS: 20000,
    },
  },
  mongodb_talk_read: {
    // "URL": "mongodb://118.89.26.241:30675/db_talk?authSource=admin",
    // "DB": "db_talk",
    // "HOST": "118.89.26.241",
    // "PORT": 30675,
    // "USERNAME": "talk",
    // "PASSWORD": "ydniu20200611"
    URL: "mongodb://118.89.26.241:30675/db_talk?authSource=admin",
    opts: {
      useCreateIndex: true,
      user: "talk",
      pass: "ydniu20200611",
      socketTimeoutMS: 15000,
      keepAlive: true,
      useNewUrlParser: true,
      useUnifiedTopology: true,
      serverSelectionTimeoutMS: 20000,
    },
  },
  mongodb_forum: {
    URL: "mongodb://118.89.26.241:30676/db_forum?authSource=admin",

    opts: {
      useCreateIndex: true,

      user: "forum",
      pass: "aoleiydniu113123",

      socketTimeoutMS: 15000,
      keepAlive: true,

      useNewUrlParser: true,
      useUnifiedTopology: true,
      serverSelectionTimeoutMS: 20000,
    },
  },
  mysql_info_db: {
    username: "info_dev",
    password: "X%#okl3l(6Kl@bUAbEk",
    host: "gz-cdb-dsgcihhl.sql.tencentcdb.com",
    port: 61251,
    database: "db_info",
    dialect: "mysql",
    logging: false,
    quoteIdentifiers: true,
    pool: {
      max: 5,
      min: 0,
      idle: 10000,
    },
    dialectOptions: {
      dateStrings: true,
      typeCast: true,
      multipleStatements: true,
      decimalNumbers: true,
    },
    define: {
      timestamps: false,
    },
    timezone: "+08:00",
  },
  mysql_nami_db: {
    username: "info_nami",
    password: "X%#okl3l(6Kl@bUAbEk",
    host: "gz-cdb-dsgcihhl.sql.tencentcdb.com",
    port: 61251,
    database: "db_nami",
    dialect: "mysql",
    logging: false,
    quoteIdentifiers: true,
    pool: {
      max: 5,
      min: 0,
      idle: 10000,
    },
    dialectOptions: {
      dateStrings: true,
      typeCast: true,
      multipleStatements: true,
      decimalNumbers: true,
    },
    define: {
      timestamps: false,
    },
    timezone: "+08:00",
  },
  PORT: 3000,
  PORT_caiminbao: 3001,
  PORT_hongdan: 3002,
  PORT_cd: 3003,
  PORT_m_chart_ydniu: 3004,
  IP: "0.0.0.0",
  WS_Name: "127.0.0.1:3000",
  info_host: "http://127.0.0.1:3000",
  CachePrefix: "ci",
  Schedule_PublishLiveTask: "0 */3 * * * *",
  AppCenter: {
    APP_CODE: "200324001",
    APP_SECRET: "2E03B93D06DFCC34D516CBB8936FA11D",
    CENTER_URL: "http://134.175.255.179:21930/",
    SESSION_KEY: "Ydn.SessionId",
    SESSION_KEY_HEADER: "ydn-sessionid",
  },
  // ApiOld: {
  //   API_OLD_URL: 'http://111.230.163.40/',
  //   APP_CODE: '200324001',
  //   APP_SECRET: '2E03B93D06DFCC34D516CBB8936FA11D',
  //   SESSION_KEY: 'Ydn.SessionId',
  //   SESSION_KEY_HEADER: 'ydn-sessionid'
  // },
  ApiChart: {
    APP_CODE: "16091519",
    APP_SECRET: "A82BC5A799FD48029EDC48A4719043E0",
    Api_URL: "http://139.199.215.113:13000/",
  },
  ApiOld: {
    API_OLD_URL: "https://security.ydniu.com:44301/",
    SESSION_KEY: "Ydn.SessionId",
    SESSION_KEY_HEADER: "ydn-sessionid",
    ANDROID: {
      APP_CODE: "150414001",
      APP_SECRET: "5C7B92CF77E1535BE41F45A0F04057EA",
    },
    IOS: {
      APP_CODE: "150414002",
      APP_SECRET: "D509C92F13D7B5F98E89E07D5750F383",
    },
    WEB: {
      APP_CODE: "200324001",
      APP_SECRET: "2E03B93D06DFCC34D516CBB8936FA11D",
    },
  },
  MicroServiceProxy: {
    // 正式库的配置 http://134.175.212.205
    //URL: 'http://193.112.83.121',
    URL: "http://134.175.212.205",
    // 正式库的配置 msproxy.ydniu.com
    //HOST: 'dev-proxy.ydniu.cn'    ,
    HOST: "msproxy.ydniu.com",
  },
  boss_service: "lotteryshop",
  TencentCaptcha: {
    aid: "2063970092",
    AppSecretKey: "0EgyqmqoqTC1RtAIVtDN6Ww**",
  },
};