Default configuration
The default configuration object has the following properties:
{
"defaultLocale": "en",
"contents": "contents",
"components": "components",
"controls": "controls",
"documentFile": "document.html",
"layoutFile": "layout.html",
"referenceFile": "references.txt",
"localeFile": "default.json",
"submenuFile": "__submenu.txt",
"layoutSegment": "layout",
"contentSegment": "content",
"searchInNavbar": true,
"getRenderer": "",
"session": {
"secret": "md-site-engine",
"resave": false,
"saveUninitialized": true
},
"redis": {
"host": "localhost",
"port": 6379,
"db": 0
},
"paths": {
"notFound": "/404",
"setLanguage": "/set-language",
"reboot": "/reboot",
"search": "/search",
"develop": "/r&d"
},
"develop": {
"cssBootstrap": "//maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css",
"cssHighlight": "//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.10.0/styles/ir-black.min.css",
"jsJQuery": "//code.jquery.com/jquery-2.1.4.min.js",
"jsBootstrap": "//maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js",
"jsHighlight": "//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.10.0/highlight.min.js"
}
}
In an application the most of the properties are unchanged. A typical configuration looks something like this (of course with the appropriate values):
{
"defaultLocale": "en",
"getRenderer": "/config/marked-renderer.js",
"session": {
"secret": "##-###-####",
"resave": false,
"saveUninitialized": true
},
"redis": {
"host": "localhost",
"port": 6379,
"db": 0,
"pass": "**-***-****"
},
"locale": {
"en": "English",
"hu": "magyar",
"ru": "русский"
}
}