Skip to content

Instantly share code, notes, and snippets.

@schneidmaster
Created May 1, 2015 20:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save schneidmaster/824f0291c2b091bef0f7 to your computer and use it in GitHub Desktop.
Save schneidmaster/824f0291c2b091bef0f7 to your computer and use it in GitHub Desktop.
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