Prerender Black/Whitelist Plugin
Easy and comfortable Black-/Whitelisting configuration plugin for Prerender Service (from prerender.io). Configuration can be set through a json file or directly from within your prerender server.
Usage
var bwlist = require('prerender-bwlist');
server.use(bwlist);
Configuration
Inline
You can set the config directly inside your prerender server.
var prerender = bwlist = ; var server = ; // Either specify a folder pathbwlist; // Or set it directly (this will overwrite the previous bit!)bwlist; // Finally tell Prerender to use the configured pluginserver;serverstart;
If bwlist.setConf
is not called prerender-bwlist will look for a bwlist.json
file in your app's root folder.
Through a bwlist.json
Create a bwlist.json from bwlist.sample.json in your app's root folder
Alternatively specify a different location for your bwlist.json through an environment variable
BWLIST_CONF=/path/to/bwlist.json
or inline with bwlist.setConf