-
Notifications
You must be signed in to change notification settings - Fork 3
/
local.example.js
69 lines (69 loc) · 2.16 KB
/
local.example.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
// Settings specific to this server. Change the URL
// if you are deploying in production.
module.exports = {
baseUrl: 'http://localhost:3000',
modules: {
// Minify Html
'apostrophe-templates': {
minify: (process.env.ENV === 'prod') // minify: true
},
// Minify Assets
'apostrophe-assets': {
minify: (process.env.ENV === 'prod') // minify: true
},
// Set a Secre for your Session
// https://docs.apostrophecms.org/howtos/storing-sessions-in-redis.html#what-about-caches
'apostrophe-express': {
session: {
secret: 'YOUR_SECRET'
}
// use other port than 3000
// port: 3001
},
// Email Settings for nodemailer
'apostrophe-email': {
nodemailer: {
host: 'SMTP_SERVER', // or use: process.env.SMTP_SERVER
port: 587,
secure: false,
auth: {
user: 'SMTP_USER', // or use: process.env.SMTP_USER
pass: 'SMTP_PW' // or use: process.env.SMTP_PW
}
}
},
// Apostrophe has full-text search capabilities built set searched pages here
// https://docs.apostrophecms.org/core-concepts/apostrophe-search/search.html
'apostrophe-search': {
// types: [
// 'home'
// ]
},
// Add parked page for search functions. Parked pages
// configures certain pages to be automatically created
// and refreshed whenever the site starts up.
'apostrophe-pages': {
// park: [
// {
// title: 'Search',
// slug: '/search',
// type: 'apostrophe-search',
// label: 'Search',
// published: true
// }
// ]
},
// If these are your db settings then you don't need to be explicit. If not
// you can uncomment this and get more specific.
'apostrophe-db': {
// uri: 'mongodb://localhost:27017/apostrophe-sandbox'
// There is legacy support for host, port, name, user and password options,
// but this is not necessary. They can all go in the uri option like this:
// mongodb://user:password@host:port/dbname
},
// DB performance test tool
// remove in production
'apostrophe-profiler': {
}
}
};