Skip to content

Instantly share code, notes, and snippets.

@netmask
Forked from jfarseneau/config.js
Created August 11, 2014 17:40
Show Gist options
  • Save netmask/f30752f56539a87d4e71 to your computer and use it in GitHub Desktop.
Save netmask/f30752f56539a87d4e71 to your computer and use it in GitHub Desktop.
// # 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