Ejemplo n.º 1
0
Archivo: conf.php Proyecto: stripTM/acd
conf::$DATA_PATH = '/mnt/contenido/acd/structures.json';
conf::$DATA_DIR_PATH = '/mnt/contenido/acd/structures';
conf::$DATA_CONTENT_PATH = '/mnt/contenido/acd/contents';
conf::$STORAGE_TYPE_TEXTPLAIN = 'text/plain';
conf::$STORAGE_TYPE_MONGODB = 'mongodb';
conf::$STORAGE_TYPE_MYSQL = 'mysql';
conf::$STORAGE_TYPES = [conf::$STORAGE_TYPE_TEXTPLAIN => ['name' => 'text/plain', 'disabled' => true], conf::$STORAGE_TYPE_MONGODB => ['name' => 'Mongo DB', 'disabled' => false], conf::$STORAGE_TYPE_MYSQL => ['name' => 'MySql', 'disabled' => true]];
conf::$DEFAULT_STORAGE = conf::$STORAGE_TYPE_MONGODB;
conf::$PERMISSION_PATH = '/mnt/contenido/acd/permission.json';
conf::$USE_AUTHENTICATION = true;
conf::$AUTH_PERSITENT_EXPIRATION_TIME = 31536000;
// 1 year
conf::$PATH_AUTH_CREDENTIALS_FILE = '/mnt/contenido/acd/auth.json';
conf::$PATH_AUTH_PREMANENT_LOGIN_DIR = '/mnt/contenido/acd/auth_permanent_login';
conf::$ROL_DEVELOPER = 'developer';
conf::$ROL_EDITOR = 'editor';
conf::$MYSQL_SERVER = 'localhost';
conf::$MYSQL_USER = '******';
conf::$MYSQL_PASSWORD = '******';
conf::$MYSQL_SCHEMA = 'acd';
conf::$MONGODB_SERVER = 'mongodb://plusdbspol01.prisadigital.int:27017,plusdbspol02.prisadigital.int:27017,plusdbspol03.prisadigital.int:27017/?replicaSet=ReplicaPlusProduccion';
// Developer / local / personal  configuration
// Default  environment  for develop is 'local', in production environment  conf.devel.php does not exist
$environment = getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'local';
if (file_exists(DIR_BASE . '/conf.' . $environment . '.php')) {
    require DIR_BASE . '/conf.' . $environment . '.php';
}
/* Debug */
if (file_exists(DIR_BASE . '/../tools/kint/Kint.class.php')) {
    require DIR_BASE . '/../tools/kint/Kint.class.php';
}