This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* An example of adding middleware. | |
* It injects code into the request pipeline that adds a header to allows resources from the server to be accessed by other domains. | |
*/ | |
class CorsPlugin { | |
static onStartupWithContext (context, cb) { | |
var middlewareName = 'addCorsHeader'; | |
var middleware = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Copyright (C) 2015 PencilBlue, LLC | |
This program is free software: you can redistribute it and/or modify | |
it under the terms of the GNU General Public License as published by | |
the Free Software Foundation, either version 3 of the License, or | |
(at your option) any later version. | |
This program is distributed in the hope that it will be useful, | |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"siteRoot": "http://mypencilblue.site.com", | |
"siteIP": "0.0.0.0", | |
"log_level": "info", | |
"registry": { | |
"type": "mongo", | |
"update_interval": 1000 | |
}, | |
"cache": { | |
"fake": true, |