Files
avusd/app.js

61 lines
1.9 KiB
JavaScript

let path = require('path');
let apos = require('apostrophe')({
// Export for apostrophe-monitor which manages restarting the apostrophe system (not the whole nodeJS process) when changes are made.
// See https://github.com/apostrophecms/apostrophe-monitor
root: module,
shortName: 'avusd',
// See lib/modules for basic project-level configuration of our modules
// responsible for serving static assets, managing page templates and
// configuring user accounts.
modules: {
'two-column-widgets': {extend: 'apostrophe-widgets'},
// Apostrophe module configuration
// Note: most configuration occurs in the respective
// modules' directories. See lib/apostrophe-assets/index.js for an example.
// However any modules that are not present by default in Apostrophe must at
// least have a minimal configuration here: `moduleName: {}`
// If a template is not found somewhere else, serve it from the top-level
// `views/` folder of the project
'apostrophe-templates': {viewsFolderFallback: path.join(__dirname, 'views')},
'apostrophe-express': {
'session': {
'secret': "ajg8zx734t6JS3nJxUJH5^9s34l12xci*JKDm wernDhqlL",
},
},
'apostrophe-assets': {
minify: (process.env.ENV === 'prod')
},
'apostrophe-db': {
uri: process.env.MONGO_URL
},
// 'apostrophe-rich-text-widgets': {
// sanitizeHtml: {
// allowedAttributes: {
// 'p': ['apos-indent1', 'apos-indent2']
// },
// allowedClasses: {
// 'p': ['apos-indent1', 'apos-indent2'],
// 'p': ['testClass']
// }
// }
// }
// Was having some issues with overlaying menus.
//'apostrophe-tiptap-rich-text-widgets': {}
}
});
// Export for apostrophe-monitor which manages restarting the apostrophe system (not the whole nodeJS process) when changes are made.
// See https://github.com/apostrophecms/apostrophe-monitor
module.exports = apos;