2013-05-11 20:44:25 +04:00
|
|
|
// # Ghost Configuration
|
|
|
|
|
|
|
|
/**
|
|
|
|
* global module
|
|
|
|
**/
|
2013-06-25 15:43:15 +04:00
|
|
|
var path = require('path'),
|
|
|
|
config;
|
2013-05-20 08:23:23 +04:00
|
|
|
|
2013-06-25 15:43:15 +04:00
|
|
|
/**
|
|
|
|
* @module config
|
|
|
|
* @type {Object}
|
|
|
|
*/
|
|
|
|
config = {};
|
|
|
|
|
|
|
|
// ## Admin settings
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @property {string} defaultLang
|
|
|
|
*/
|
|
|
|
config.defaultLang = 'en';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @property {boolean} forceI18n
|
|
|
|
*/
|
|
|
|
config.forceI18n = true;
|
|
|
|
|
|
|
|
// ## Themes
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @property {string} themeDir
|
|
|
|
*/
|
|
|
|
|
|
|
|
// Themes
|
|
|
|
config.themeDir = 'themes';
|
2013-05-29 22:26:08 +04:00
|
|
|
|
2013-06-26 01:44:34 +04:00
|
|
|
// Current active theme
|
2013-06-25 15:43:15 +04:00
|
|
|
/**
|
|
|
|
* @property {string} activeTheme
|
|
|
|
*/
|
|
|
|
config.activeTheme = 'casper';
|
|
|
|
|
2013-07-01 23:24:48 +04:00
|
|
|
|
|
|
|
config.activePlugins = [
|
|
|
|
'fancyFirstChar.js'
|
|
|
|
];
|
|
|
|
|
2013-06-26 01:44:34 +04:00
|
|
|
// Default Navigation Items
|
2013-06-25 15:43:15 +04:00
|
|
|
/**
|
2013-06-26 01:44:34 +04:00
|
|
|
* @property {Array} nav
|
2013-06-25 15:43:15 +04:00
|
|
|
*/
|
2013-06-26 01:44:34 +04:00
|
|
|
config.nav = [{
|
|
|
|
title: 'Home',
|
|
|
|
url: '/'
|
|
|
|
}];
|
2013-06-25 15:43:15 +04:00
|
|
|
|
|
|
|
config.database = {
|
|
|
|
testing: {
|
|
|
|
client: 'sqlite3',
|
|
|
|
connection: {
|
|
|
|
filename: path.join(__dirname, '/core/shared/data/tests.db')
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
travis: {
|
|
|
|
client: 'sqlite3',
|
|
|
|
connection: {
|
|
|
|
filename: path.join(__dirname, '/core/shared/data/tests.db')
|
|
|
|
}
|
|
|
|
// debug: true
|
|
|
|
},
|
|
|
|
|
|
|
|
development: {
|
|
|
|
client: 'sqlite3',
|
|
|
|
connection: {
|
|
|
|
filename: path.join(__dirname, '/core/shared/data/testdb.db')
|
2013-05-17 01:16:09 +04:00
|
|
|
},
|
2013-06-25 15:43:15 +04:00
|
|
|
debug: false
|
|
|
|
// debug: true
|
|
|
|
},
|
|
|
|
|
|
|
|
staging: {},
|
|
|
|
|
|
|
|
production: {}
|
|
|
|
};
|
2013-05-17 01:16:09 +04:00
|
|
|
|
2013-06-25 15:43:15 +04:00
|
|
|
/**
|
|
|
|
* @property {Object} exports
|
|
|
|
*/
|
|
|
|
module.exports = config;
|