"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
var _app = _interopRequireDefault(require("./app"));
var _fs = _interopRequireDefault(require("fs"));
var _https = _interopRequireDefault(require("https"));
_https["default"].createServer({
  cert: _fs["default"].readFileSync(require.resolve("./keys/fullchain.pem")),
  key: _fs["default"].readFileSync(require.resolve("./keys/privkey.pem"))
}, _app["default"]).listen(_app["default"].get('port'));
console.log('init in', _app["default"].get('port'));