-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.js
85 lines (79 loc) · 2.46 KB
/
config.js
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
var path = require('path'),
fs = require("fs"),
config;
var mysqlInfo = JSON.parse(fs.readFileSync(path.join(__dirname, '../sys-config/luojilab_my_sql_pwd.json')).toString());
config = {
production: {
url: 'http://f2e.luojilab.org/',
mail: {
transport: 'SMTP',
options: {
service: 'Mailgun',
auth: {
user: '[email protected]', // mailgun username
pass: mysqlInfo.mailpwd // mailgun password
}
}
},
database: {
client: 'mysql',
connection: {
host: 'localhost',
user: mysqlInfo.name,
password: mysqlInfo.pwd,
database: mysqlInfo.database,
charset: 'utf8'
}
},
server: {
host: '0.0.0.0',
port: '9922'
}
},
development: {
url: 'http://localhost:9922',
// Example refferer policy
// Visit https://www.w3.org/TR/referrer-policy/ for instructions
// default 'origin-when-cross-origin',
// referrerPolicy: 'origin-when-cross-origin',
// Example mail config
// Visit http://support.ghost.org/mail for instructions
// ```
// mail: {
// transport: 'SMTP',
// options: {
// service: 'Mailgun',
// auth: {
// user: '[email protected]', // mailgun username
// pass: '36617ba6b75d105720613264ca7b4b55' // mailgun password
// }
// }
// },
// ```
database: {
client: 'sqlite3',
connection: {
filename: path.join(__dirname, '/content/data/ghost-dev.db')
},
debug: false
},
// database: {
// client: 'mysql',
// connection: {
// host: 'localhost',
// user: mysqlInfo.name,
// password: mysqlInfo.pwd,
// database: mysqlInfo.database,
// charset: 'utf8'
// }
// },
server: {
host: '0.0.0.0',
port: '9922'
},
paths: {
contentPath: path.join(__dirname, '/content/')
}
}
};
module.exports = config;