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
|
|
|
|
2013-07-07 19:50:50 +04:00
|
|
|
config.env = {
|
2013-06-25 15:43:15 +04:00
|
|
|
testing: {
|
2013-07-07 19:50:50 +04:00
|
|
|
database: {
|
|
|
|
client: 'sqlite3',
|
|
|
|
connection: {
|
2013-07-11 23:02:18 +04:00
|
|
|
filename: path.join(__dirname, '/core/server/data/ghost-test.db')
|
2013-07-07 19:50:50 +04:00
|
|
|
}
|
|
|
|
},
|
|
|
|
url: {
|
|
|
|
host: '127.0.0.1',
|
|
|
|
port: '2368'
|
2013-06-25 15:43:15 +04:00
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
travis: {
|
2013-07-07 19:50:50 +04:00
|
|
|
database: {
|
|
|
|
client: 'sqlite3',
|
|
|
|
connection: {
|
2013-07-11 23:02:18 +04:00
|
|
|
filename: path.join(__dirname, '/core/server/data/ghost-travis.db')
|
2013-07-07 19:50:50 +04:00
|
|
|
}
|
|
|
|
},
|
|
|
|
url: {
|
|
|
|
host: '127.0.0.1',
|
|
|
|
port: '2368'
|
2013-06-25 15:43:15 +04:00
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
development: {
|
2013-07-07 19:50:50 +04:00
|
|
|
database: {
|
|
|
|
client: 'sqlite3',
|
|
|
|
connection: {
|
2013-07-11 23:02:18 +04:00
|
|
|
filename: path.join(__dirname, '/core/server/data/ghost-dev.db')
|
2013-07-07 19:50:50 +04:00
|
|
|
},
|
2013-07-08 15:39:11 +04:00
|
|
|
debug: false
|
2013-05-17 01:16:09 +04:00
|
|
|
},
|
2013-07-07 19:50:50 +04:00
|
|
|
url: {
|
|
|
|
host: '127.0.0.1',
|
|
|
|
port: '2368'
|
|
|
|
}
|
2013-06-25 15:43:15 +04:00
|
|
|
},
|
|
|
|
|
2013-07-07 19:50:50 +04:00
|
|
|
staging: {
|
|
|
|
database: {
|
|
|
|
client: 'sqlite3',
|
|
|
|
connection: {
|
2013-07-11 23:02:18 +04:00
|
|
|
filename: path.join(__dirname, '/core/server/data/ghost-staging.db')
|
2013-07-07 19:50:50 +04:00
|
|
|
},
|
|
|
|
debug: false
|
|
|
|
},
|
|
|
|
url: {
|
|
|
|
host: '127.0.0.1',
|
|
|
|
port: '2368'
|
|
|
|
}
|
|
|
|
},
|
2013-06-25 15:43:15 +04:00
|
|
|
|
2013-07-07 19:50:50 +04:00
|
|
|
production: {
|
|
|
|
database: {
|
|
|
|
client: 'sqlite3',
|
|
|
|
connection: {
|
2013-07-11 23:02:18 +04:00
|
|
|
filename: path.join(__dirname, '/core/server/data/ghost.db')
|
2013-07-07 19:50:50 +04:00
|
|
|
},
|
|
|
|
debug: false
|
|
|
|
},
|
|
|
|
url: {
|
|
|
|
host: '127.0.0.1',
|
|
|
|
port: '2368'
|
|
|
|
}
|
|
|
|
}
|
2013-06-25 15:43:15 +04:00
|
|
|
};
|
2013-05-17 01:16:09 +04:00
|
|
|
|
2013-06-25 15:43:15 +04:00
|
|
|
/**
|
|
|
|
* @property {Object} exports
|
|
|
|
*/
|
|
|
|
module.exports = config;
|