/
githubmirror
/
meteor
Обзор
Документация
Войти
/
githubmirror
/
meteor
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
devel
packages/force-ssl/package.js
22 строки
769 B
italo jose
Meteor version to 3.5 :comet:
30 июн 2026, 21:08
30 июн 2026, 21:08
3f23e5e
Код
Авторство
О чём код?
Package.describe({ summary: "Require this application to use HTTPS", version: '1.1.2', prodOnly: true }); Package.onUse(function (api) { api.use('ecmascript'); api.use('webapp', 'server'); // make sure we come after livedata, so we load after the sockjs // server has been instantiated. api.use('ddp', 'server'); api.use('force-ssl-common', 'server'); api.mainModule('force_ssl_both.js', ['client', 'server']); api.mainModule('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. });