-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.js
40 lines (34 loc) · 1.53 KB
/
index.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
const keystone = require('keystone')
const path = require('path')
keystone.init({
// The name of the KeystoneJS application
'name': 'Admin - WATT Consultoria',
'brand': "WATT Consultoria",
'admin path': 'admin',
'port': process.env.PORT || 3000,
// Paths to our application static files
'static': [path.join(__dirname, '/public')],
// Keystone includes an updates framework,
// which you can enable by setting the auto update option to true.
// Updates provide an easy way to seed your database,
// transition data when your models change,
// or run transformation scripts against your database.
'auto update': true,
// The url for your MongoDB connection
'mongo': 'mongodb://admin:[email protected]:27017,watt-shard-00-01-pwbop.mongodb.net:27017,watt-shard-00-02-pwbop.mongodb.net:27017/test?ssl=true&replicaSet=WATT-shard-0&authSource=admin&retryWrites=true&w=majority',
'cloudinary config': 'cloudinary://475133448126917:AVR4ftolENYlO7sT5O35oY6Wd4A@wattconsultoria',
// Whether to enable built-in authentication for Keystone's Admin UI,
'auth': true,
// The key of the Keystone List for users, required if auth is set to true
'user model': 'User',
'locale': 'localeEnBr',
// The encryption key to use for your cookies.
'cookie secret': '6D61822FBEAED8635A4A52241FEC3',
});
keystone.import('./server/models')
keystone.set('routes', require('./server/routes'))
keystone.set('nav', {
'Usuários': ['User'],
'Página': ['Contato', 'Servicos', 'Banner', 'QuemSomos']
})
keystone.start()