-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathconfig.js
More file actions
64 lines (55 loc) · 2.06 KB
/
config.js
File metadata and controls
64 lines (55 loc) · 2.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
// # Ghost Configuration
// Setup your Ghost install for deployment to Zeit Now.
// This is a stripped down version of the default `config.example.js`
// file with only a single ("production") environment for simplicity.
// Full documentation can be found at http://support.ghost.org/config/
var path = require('path')
exports.production = {
// The url to use when providing links to the site, E.g. in RSS and email.
// Change this to your Ghost blog's published URL.
url: 'https://now-examples-ghost.now.sh',
// Visit http://support.ghost.org/mail for instructions
mail: {},
// #### Database
// Ghost supports sqlite3 (default), MySQL & PostgreSQL
// For deployment to Now, a remote/persistent storage should be used
// (i.e mysql or postgres), so that your content is persisted throughout
// multiple deployments / instances / upgrades.
// http://www.fastcomet.com/tutorials/ghost/configure-mysql-database
database: {
client: 'sqlite3',
connection: {
filename: path.join(__dirname, '/content/data/ghost.db')
},
debug: false
},
// #### Use persistent file storage? (No, for Now deployments)
// http://support.ghost.org/config/#file-storage
//
// Now fires up multiple instances of your Ghost server globally,
// so if we were to upload an image for a blog post on one of the
// instances then the file would be missing on the other instances.
// So by default disable local file storage, which forces you to use
// external image URLs for all blog post and profile images.
//
// I recommend using https://cloudup.com/ for image hosting
// with Direct URL (hotlinking) access.
fileStorage: false,
// #### Server
// http://support.ghost.org/config/#server
//
// The server host and port are the IP address and port number that Ghost
// should listen on.
// (Probably don't touch this)
server: {
host: '0.0.0.0',
port: '2368'
},
// #### Paths
// http://support.ghost.org/config/#paths
//
// Specify where your content directory lives.
paths: {
contentPath: path.join(__dirname, 'content')
}
}