mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-27 12:53:13 +03:00
d9fb23496c
closes #625 - removed defaultLang, forceI18n and activePlugins from config - added values to default-settings.json - updated to use values from settings
115 lines
3.0 KiB
JavaScript
115 lines
3.0 KiB
JavaScript
// # Ghost Configuration
|
|
|
|
var path = require('path'),
|
|
config = {};
|
|
|
|
// ## Default Navigation Items
|
|
// Add new objects here to extend the menu output by {{nav}}
|
|
config.nav = [
|
|
{
|
|
// Title is the text shown for this nav item
|
|
title: 'Home',
|
|
// Url can be a relative path, or external URL
|
|
url: '/'
|
|
}
|
|
// new items go here
|
|
];
|
|
|
|
// ## Environment
|
|
// **Warning:** Only change the settings below here if you are sure of what you are doing!
|
|
config.env = {
|
|
testing: {
|
|
database: {
|
|
client: 'sqlite3',
|
|
connection: {
|
|
filename: path.join(__dirname, '/core/server/data/ghost-test.db')
|
|
}
|
|
},
|
|
server: {
|
|
host: '127.0.0.1',
|
|
port: '2369'
|
|
},
|
|
// The url to use when providing links to the site; like RSS and email.
|
|
url: 'http://127.0.0.1:2369'
|
|
},
|
|
|
|
travis: {
|
|
database: {
|
|
client: 'sqlite3',
|
|
connection: {
|
|
filename: path.join(__dirname, '/core/server/data/ghost-travis.db')
|
|
}
|
|
},
|
|
server: {
|
|
host: '127.0.0.1',
|
|
port: '2368'
|
|
},
|
|
// The url to use when providing links to the site; like RSS and email.
|
|
url: 'http://127.0.0.1:2368'
|
|
},
|
|
|
|
// Default configuration
|
|
development: {
|
|
database: {
|
|
client: 'sqlite3',
|
|
connection: {
|
|
filename: path.join(__dirname, '/core/server/data/ghost-dev.db')
|
|
},
|
|
debug: false
|
|
},
|
|
server: {
|
|
host: '127.0.0.1',
|
|
port: '2368'
|
|
},
|
|
// The url to use when providing links to the site; like RSS and email.
|
|
url: 'http://127.0.0.1:2368',
|
|
// Example mail config
|
|
mail: {
|
|
transport: 'sendgrid',
|
|
host: 'smtp.sendgrid.net',
|
|
options: {
|
|
service: 'Sendgrid',
|
|
auth: {
|
|
user: '', // Super secret username
|
|
pass: '' // Super secret password
|
|
}
|
|
}
|
|
}
|
|
},
|
|
|
|
staging: {
|
|
database: {
|
|
client: 'sqlite3',
|
|
connection: {
|
|
filename: path.join(__dirname, '/core/server/data/ghost-staging.db')
|
|
},
|
|
debug: false
|
|
},
|
|
server: {
|
|
host: '127.0.0.1',
|
|
port: '2368'
|
|
},
|
|
// The url to use when providing links to the site; like RSS and email.
|
|
url: 'http://127.0.0.1:2368'
|
|
},
|
|
|
|
production: {
|
|
database: {
|
|
client: 'sqlite3',
|
|
connection: {
|
|
filename: path.join(__dirname, '/core/server/data/ghost.db')
|
|
},
|
|
debug: false
|
|
},
|
|
server: {
|
|
host: '127.0.0.1',
|
|
port: '2368'
|
|
},
|
|
// The url to use when providing links to the site; like RSS and email.
|
|
url: 'http://127.0.0.1:2368'
|
|
}
|
|
};
|
|
|
|
// Export config
|
|
module.exports = config;
|