Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Sample Ghost Production Configuration
// # Ghost Configuration
// Setup your Ghost install for the production environment
// Documentation can be found at http://support.ghost.org/config/
var path = require('path'),
config;
config = {
// ### Production
// When running Ghost in the wild, use the production environment
// Configure your URL and mail settings here
production: {
url: 'https://yourappdomain.com',
mail: {
transport: 'SMTP',
options: {
service: 'Mailgun',
auth: {
user: 'postmaster@mg.yourappdomain.com', // mailgun username
pass: 'yourmailgunpassword' // mailgun password
}
}
},
database: {
client: 'mysql',
connection: {
host: '127.0.0.1',
user: 'ghost_user',
password: 'your_ghost_user_password',
database: 'ghost_db',
charset: 'utf8'
}
},
server: {
// Host to be passed to node's `net.Server#listen()`
host: '127.0.0.1',
// Port to be passed to node's `net.Server#listen()`, for iisnode set this to `process.env.PORT`
port: '2368'
}
}
};
// Export config
module.exports = config;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.