HEX
Server: nginx/1.24.0
System: Linux nowruzgan 6.8.0-57-generic #59-Ubuntu SMP PREEMPT_DYNAMIC Sat Mar 15 17:40:59 UTC 2025 x86_64
User: babak (1000)
PHP: 8.3.6
Disabled: NONE
Upload Files
File: /var/dev/irantv2.com/rest/config/datastores.js
/**
 * Datastores
 * (sails.config.datastores)
 *
 * A set of datastore configurations which tell Sails where to fetch or save
 * data when you execute built-in model methods like `.find()` and `.create()`.
 *
 *  > This file is mainly useful for configuring your development database,
 *  > as well as any additional one-off databases used by individual models.
 *  > Ready to go live?  Head towards `config/env/production.js`.
 *
 * For more information on configuring datastores, check out:
 * https://sailsjs.com/config/datastores
 */

module.exports.datastores = {

  'mongodb': {
    adapter: 'sails-mongo',
    host: 'localhost',
    port: 27017,
//    user: 'irantver',
//    password: '8-{)arabasdoombarabas',
   database: 'irantv'
  },

  'mysql': {
    adapter: 'sails-mysql',
    host: 'localhost',
    user: 'root',
    password: 'anandashankar',
    database: 'irantv'
  },

  cache: {
    adapter: 'sails-redis',
    url: 'redis://localhost:6379/2',
    // password: null,
    // database: 2,
  },
};