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
// 200k entries and more | |
HugeCollection = new Meteor.Collection("HugeCollection"); | |
// convenience collection to hold the computed stats of HugeCollection | |
StatsForHugeCollection = new Meteor.Collection("StatsForHugeCollection"); | |
/** | |
* Observer | |
*/ |
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
/** | |
* HTTP Header Security | |
* | |
* enforce HTTP Strict Transport Security (HSTS) to prevent ManInTheMiddle-attacks | |
* on supported browsers (all, but IE) | |
* > http://www.html5rocks.com/en/tutorials/security/transport-layer-security | |
* | |
* @header Strict-Transport-Security: max-age=2592000; includeSubDomains | |
*/ |
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
////////// Requires ////////// | |
var Fiber = require("fibers"); | |
var fs = require("fs"); | |
var http = require("http"); | |
var path = require("path"); | |
var url = require("url"); | |
// connect (and some other NPM modules) use $NODE_ENV to make some decisions; |
NewerOlder