Skip to content

Instantly share code, notes, and snippets.

@letsjustfixit
Last active March 13, 2017 00:09
Show Gist options
  • Save letsjustfixit/54c268bcc1a9de100b60101b0b557cc3 to your computer and use it in GitHub Desktop.
Save letsjustfixit/54c268bcc1a9de100b60101b0b557cc3 to your computer and use it in GitHub Desktop.
Ghost lts
URL=
URLSSL=
FORCEADMINSSL=
MAIL.FROM=
MAIL.TRANSPORT=
MAIL.OPTIONS.SERVICE=
MAIL.OPTIONS.AUTH.USER=
MAIL.OPTIONS.AUTH.PASS=
DB.CLIENT=
DB.SQLITE_FILENAME=
DB.MYSQL_HOST=
DB.MYSQL_USER=
DB.MYSQL_PASSWORD=
DB.MYSQL_DATABASE=
DB.MYSQL_CHARSET=
DB.MYSQL_POOL.MIN=
DB.MYSQL_POOL.MAX=
DB.DEBUG=
FILESTORAGE=
SERVER.HOST=
SERVER.PORT=
SERVER.SOCKET=
MAIL.FROM=
MAIL.TRANSPORT=
MAIL.OPTIONS.SERVICE=
MAIL.OPTIONS.AUTH.USER=
MAIL.OPTIONS.AUTH.PASS=
MAIL.OPTIONS.HOST=
MAIL.OPTIONS.PORT=
MAIL.AWSAccessKeyID=
MAIL.AWSSecretKey=
MAINTENANCE.ENABLED=
REFERRERPOLICY=
PRIVACY.USEUPDATECHECK=
PRIVACY.USEGOOGLEFONTS=
PRIVACY.USEGRAVATAR=
PRIVACY.USERPCPING=
PRIVACY.USESTRUCTUREDDATA
// # Ghost Configuration
// Setup your Ghost install for various environments
// 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: process.env.URL,
urlSSL: process.env.URLSSL,
forceAdminSSL: process.env.FORCEADMINSSL,
maintenance: process.env.MAINTENANCE.ENABLED,
mail: {
from: process.env.MAIL.FROM,
transport: process.env.MAIL.TRANSPORT,
host: process.env.MAIL.OPTIONS.HOST,
port: process.env.MAIL.OPTIONS.PORT,
options: {
service: process.env.MAIL.OPTIONS.SERVICE,
auth: {
user: process.env.MAIL.OPTIONS.AUTH.USER,
pass: process.env.MAIL.OPTIONS.AUTH.PASS
}
}
},
database: {
//client: 'sqlite3',
//connection: {
// filename: path.join(__dirname, '/content/data/ghost.db')
//},
debug: process.env.DB.DEBUG,
client: process.env.DB.CLIENT,
connection: {
host : process.env.DB.MYSQL_HOST,
user : process.env.DB.MYSQL_USER,
password : process.env.DB.MYSQL_PASSWORD,
database : process.env.DB.MYSQL_DATABASE,
charset : process.env.DB.MYSQL_CHARSET,
filename : process.env.DB.SQLITE_FILENAME
},
pool: {
min: process.env.DB.MYSQL_POOL.MIN,
max: process.env.DB.MYSQL_POOL.MAX
}
},
privacy: {
useUpdateCheck: process.env.PRIVACY.USEUPDATECHECK,
useGoogleFonts: process.env.PRIVACY.USEGOOGLEFONTS,
useGravatar: process.env.PRIVACY.USEGRAVATAR,
useRpcPing: process.env.PRIVACY.USERPCPING,
useStructuredData: process.env.PRIVACY.USESTRUCTUREDDATA
},
fileStorage: process.env.FILESTORAGE,
referrerPolicy: process.env.REFERRERPOLICY,
server: {
host: process.env.SERVER.HOST,
port: process.env.PORT,
socket:process.env.SERVER.SOCKET
}
},
// ### Development **(default)**
development: {
// The url to use when providing links to the site, E.g. in RSS and email.
// Change this to your Ghost blogs published URL.
url: 'http://localhost:2368',
// Example mail config
// Visit http://support.ghost.org/mail for instructions
// ```
// mail: {
// transport: 'SMTP',
// options: {
// service: 'Mailgun',
// auth: {
// user: '', // mailgun username
// pass: '' // mailgun 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: '127.0.0.1',
// Port to be passed to node's `net.Server#listen()`, for iisnode set this to `process.env.PORT`
port: '2368'
},
paths: {
contentPath: path.join(__dirname, '/content/')
}
}
};
// Export config
module.exports = config;
process.env.URL
process.env.URLSSL
process.env.FORCEADMINSSL
process.env.MAIL.FROM
process.env.MAIL.TRANSPORT
process.env.MAIL.OPTIONS.SERVICE
process.env.MAIL.OPTIONS.AUTH.USER
process.env.MAIL.OPTIONS.AUTH.PASS=
process.env.DB.CLIENT
process.env.DB.SQLITE_FILENAME
process.env.DB.MYSQL_HOST
process.env.DB.MYSQL_USER
process.env.DB.MYSQL_PASSWORD
process.env.DB.MYSQL_DATABASE
process.env.DB.MYSQL_CHARSET
process.env.DB.MYSQL_POOL.MIN
process.env.DB.MYSQL_POOL.MAX
process.env.DB.DEBUG
process.env.FILESTORAGE
process.env.SERVER.HOST
process.env.SERVER.PORT
process.env.SERVER.SOCKET
process.env.MAIL.FROM
process.env.MAIL.TRANSPORT
process.env.MAIL.OPTIONS.SERVICE
process.env.MAIL.OPTIONS.AUTH.USER
process.env.MAIL.OPTIONS.AUTH.PASS
process.env.MAIL.OPTIONS.HOST
process.env.MAIL.OPTIONS.PORT
process.env.MAIL.AWSAccessKeyID
process.env.MAIL.AWSSecretKey
process.env.MAINTENANCE.ENABLED
#origin-when-cross-origin
process.env.REFERRERPOLICY
process.env.PRIVACY.USEUPDATECHECK
process.env.PRIVACY.USEGOOGLEFONTS
process.env.PRIVACY.USEGRAVATAR
process.env.PRIVACY.USERPCPING
process.env.PRIVACY.USESTRUCTUREDDATA
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment