Skip to content

Instantly share code, notes, and snippets.

@jfarseneau
Last active December 25, 2015 12:49
Show Gist options
  • Save jfarseneau/6979674 to your computer and use it in GitHub Desktop.
Save jfarseneau/6979674 to your computer and use it in GitHub Desktop.
Config for Ghost in a Docker container
// # Ghost Configuration
// Setup your Ghost install for various environments
var path = require('path'),
config;
config = {
// ### Development **(default)**
development: {
url: process.env.GHOST_HTTP_URL,
mail: {
transport: 'SMTP',
fromaddress: process.env.MAIL_FROMADDRESS,
options: {
service: process.env.MAIL_SERVICE,
auth: {
user: process.env.MAIL_USERNAME, // Mail username
pass: process.env.MAIL_PASSWORD // Mail password
}
}
},
database: {
client: 'sqlite3',
connection: {
filename: path.join(__dirname, '/content/data/ghost-dev.db')
},
debug: false
},
server: {
// Host to be passed to node's `net.Server#listen()`
host: '0.0.0.0',
// Port to be passed to node's `net.Server#listen()`, for iisnode set this to `process.env.PORT`
port: '2368'
}
},
// ### Production
// When running Ghost in the wild, use the production environment
// Configure your URL and mail settings here
production: {
url: process.env.GHOST_HTTP_URL,
mail: {
transport: 'SMTP',
fromaddress: process.env.MAIL_FROMADDRESS,
options: {
service: process.env.MAIL_SERVICE,
auth: {
user: process.env.MAIL_USERNAME, // Mail username
pass: process.env.MAIL_PASSWORD // Mail password
}
}
},
database: {
client: 'sqlite3',
connection: {
filename: path.join(__dirname, '/content/data/ghost.db')
},
debug: false
},
server: {
// Host to be passed to node's `net.Server#listen()`
host: '0.0.0.0',
// 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