mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-15 19:52:01 +03:00
ba810fb0bb
Function wrapper and use strict pragma removed from all node files
102 lines
1.5 KiB
JavaScript
102 lines
1.5 KiB
JavaScript
// # Ghost Configuration
|
|
|
|
/**
|
|
* global module
|
|
**/
|
|
var path = require('path'),
|
|
config;
|
|
|
|
/**
|
|
* @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';
|
|
|
|
/**
|
|
* @property {string} activeTheme
|
|
*/
|
|
config.activeTheme = 'casper';
|
|
|
|
// ## Homepage settings
|
|
/**
|
|
* @module homepage
|
|
* @type {Object}
|
|
*/
|
|
config.homepage = {};
|
|
|
|
/**
|
|
* @property {number} features
|
|
*/
|
|
config.homepage.features = 1;
|
|
|
|
/**
|
|
* @property {number} posts
|
|
*/
|
|
config.homepage.posts = 4;
|
|
|
|
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')
|
|
},
|
|
debug: false
|
|
// debug: true
|
|
},
|
|
|
|
staging: {},
|
|
|
|
production: {}
|
|
};
|
|
|
|
/**
|
|
* @property {Array} nav
|
|
*/
|
|
config.nav = [{
|
|
title: 'Home',
|
|
url: '/'
|
|
}, {
|
|
title: 'Admin',
|
|
url: '/ghost'
|
|
}];
|
|
|
|
/**
|
|
* @property {Object} exports
|
|
*/
|
|
module.exports = config; |