Skip to content

Instantly share code, notes, and snippets.

@tanqhnguyen
Created September 27, 2012 04:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tanqhnguyen/3792110 to your computer and use it in GitHub Desktop.
Save tanqhnguyen/3792110 to your computer and use it in GitHub Desktop.
<?php
Yii::setPathOfAlias('Predis', '/usr/share/php/Predis');
Yii::setPathOfAlias('Archive', realpath(dirname(__FILE__).'/../../../archive'));
Yii::setPathOfAlias('art-cache', realpath(dirname(__FILE__).'/../../art/'));
require_once("facebook.php");
return array(
'params'=>array(
'env' => 'dev',
'google_analytic' => 'UA-31325000-1',
'last.fm'=>array(
'apiKey' => '',
'secret' => '',
),
'musicbrainz'=>array(
'dsn' => 'pgsql:dbname=lyrigram;host=127.0.0.1',
'user' => 'lyrigram',
'password' => 'lyrigram'
),
'artPath'=>'/art/',
),
'components'=>array(
'urlManager'=>array(
'baseURL'=>'https://localhost',
),
'log'=>array(
'class'=>'CLogRouter',
'routes'=>array(
array(
'class'=>'CFileLogRoute',
'levels'=>'error, warning',
),
/*
array(
'class'=>'CWebLogRoute',
), */
),
),
'db'=>array(
'class'=>'system.db.CDbConnection',
'connectionString' => 'pgsql:dbname=lyrigram;host=127.0.0.1',
'username' => 'lyrigram',
'password' => 'lyrigram',
'charset' => 'utf8',
'persistent'=>true,
'enableParamLogging'=>true,
'schemaCachingDuration'=>30,
),
'redis'=>array(
'class'=>'RedisConnection',
'params'=>array(
'host'=>'127.0.0.1',
'port'=>6379,
'password' => '123qweasdzxc',
'prefix'=>'',
'connection_persistent'=>true,
'trace'=>true
),
),
'eauth' => array(
'class' => 'ext.eauth.EAuth',
'popup' => false,
'services' => array(
'twitter' => array(
'class' => 'CustomTwitterService',
'key' => 'Nuvsy51bMQIGlIlKcbblxw',
'secret' => '2sh61Tz1Ul8sucbqnTBBwJltHCoYBczULI5qX2w',
),
'facebook' => array(
'class' => 'CustomFacebookService',
'scope' => 'publish_stream',
'client_id' => '301555496575454',
'client_secret' => '289c739c9fc17041b5856532b9cd3f7c',
),
),
),
'facebook'=>array(
'class'=>'FacebookConnection',
'params'=>array(
'connection' => array(
'appId' => '301555496575454',
'secret' => '289c739c9fc17041b5856532b9cd3f7c',
),
'timeout' => 600,
'appUrl' => 'https://localhost',
),
),
'archiver' => array(
'class' => 'Archiver',
'params' => array(
'handler' => 'db4',
'filename' => Yii::getPathOfAlias('Archive') . '/archive.db',
),
),
),
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment