{"size": 745, "ext": "js", "max_stars_repo_path": "dist/utils.js", "max_stars_repo_name": "ffis/redisproxy", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "dist/utils.js", "max_issues_repo_name": "ffis/redisproxy", "max_issues_repo_issues_event_min_datetime": "2020-07-21T09:19:03.000Z", "max_issues_repo_issues_event_max_datetime": "2020-07-21T09:19:03.000Z", "max_forks_repo_path": "dist/utils.js", "max_forks_repo_name": "ffis/redisproxy", "max_forks_repo_forks_event_min_datetime": "2021-01-11T12:05:26.000Z", "max_forks_repo_forks_event_max_datetime": "2021-01-11T12:05:26.000Z"}
{"max_stars_count": null, "max_issues_count": 1, "max_forks_count": 1, "avg_line_length": 35.4761904762, "max_line_length": 97, "alphanum_fraction": 0.6563758389}
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getServer = void 0;
var https_1 = require("https");
var fs_1 = require("fs");
var path_1 = require("path");
function getServer(config, app) {
    var server;
    if (config.server.https) {
        var options = Object.assign({}, config.server.options);
        options.key = fs_1.readFileSync(path_1.resolve(__dirname, "..", options.key), "utf-8");
        options.cert = fs_1.readFileSync(path_1.resolve(__dirname, "..", options.cert), "utf-8");
        server = https_1.createServer(options, app);
    }
    else {
        server = require('http').createServer(app);
    }
    return server;
}
exports.getServer = getServer;
//# sourceMappingURL=utils.js.map