Files
meteor/packages/force-ssl/package.js
Ben Newman 232ab2d209 Bump package versions for 1.4.2-beta.9 release.
I had to scrap the 1.4.2-beta.8 release because meteor-tool@1.4.2-beta.8
got published by a partial run of the publish-release script, but then the
publish-release script thought meteor-tool changed after that, and I
didn't want to republish it as something like 1.4.2-1-beta.8.
2016-10-05 18:42:56 -04:00

22 lines
734 B
JavaScript

Package.describe({
summary: "Require this application to use HTTPS",
version: "1.0.13-beta.9",
prodOnly: true
});
Package.onUse(function (api) {
api.use('webapp', 'server');
api.use('underscore');
// make sure we come after livedata, so we load after the sockjs
// server has been instantiated.
api.use('ddp', 'server');
api.addFiles('force_ssl_common.js', ['client', 'server']);
api.addFiles('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.
});