-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.js
63 lines (50 loc) · 1.93 KB
/
app.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
var site = require('apostrophe-site')({
// This line is required and allows apostrophe-site to use require() and manage our NPM modules for us.
root: module,
shortName: 'osf',
hostName: 'osf',
title: 'Open Source Foundation',
sessionSecret: 'apostrophe sandbox demo party',
adminPassword: 'demo',
address: '0.0.0.0',
port: 3000,
// Force a2 to prefix all of its URLs. It still
// listens on its own port, but you can configure
// your reverse proxy to send it traffic only
// for URLs with this prefix. With this option
// "/" becomes a 404, which is supposed to happen!
// prefix: '/test',
// If true, new tags can only be added by admins accessing
// the tag editor modal via the admin bar. Sometimes useful
// if your folksonomy has gotten completely out of hand
lockTags: false,
// Give users a chance to log in if they attempt to visit a page
// which requires login
secondChanceLogin: true,
locals: require('./lib/locals.js'),
// you can define lockups for areas here
// Here we define what page templates we have and what they will be called in the Page Types menu.
// For html templates, the 'name' property refers to the filename in ./views/pages, e.g. 'default'
// refers to '/views/pages/default.html'.
// The name property can also refer to a module, in the case of 'blog', 'map', 'events', etc.
pages: {
types: [
{ name: 'default', label: 'Default' }
]
},
// These are the modules we want to bring into the project.
modules: {
// Styles required by the new editor, must go FIRST
'apostrophe-editor-2': {},
'apostrophe-ui-2': {},
'apostrophe-browserify': {
files: ['./public/js/modules/_site.js']
}
},
// These are assets we want to push to the browser.
// The scripts array contains the names of JS files in /public/js,
// while stylesheets contains the names of LESS files in /public/css
assets: {
stylesheets: ['site']
}
});