Files
meteor/packages/force-ssl/package.js
2012-06-26 15:15:21 -07:00

17 lines
637 B
JavaScript

Package.describe({
summary: "Require this application always use transport layer encryption"
});
Package.on_use(function (api) {
api.use('underscore', 'server');
// make sure we come after livedata, so we load after the sockjs
// server has been instantiated.
api.use('livedata', 'server');
api.add_files('force_ssl_server.js', 'server');
// Another thing we could do is add a force_ssl_client.js file that
// makes sure document.location.protocol is 'https'. If it detected
// the code was loaded from a non-localhost non-https site, it would
// stop the app from working and pop up an error box or something.
});