1 Star 1 Fork 0

Niclas0923 / tools-school-web

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
index.js 363 Bytes
一键复制 编辑 原始数据 按行查看 历史
Niclas0923 提交于 2023-08-21 14:53 . 完成基础搭建和信息同步
const fs = require("fs")
const server = require("./server/server").ser
// 读取配置
const op = JSON.parse(String(fs.readFileSync("./config/server.json")))
const listVal = JSON.parse(String(fs.readFileSync("./config/list.json")))
// 判断协议
const httpsOn = op["http"]["on"] === false
// 启动服务
server(httpsOn?op["https"]:op['http'],httpsOn,listVal)
NodeJS
1
https://gitee.com/niclas0923/tools-school-web.git
git@gitee.com:niclas0923/tools-school-web.git
niclas0923
tools-school-web
tools-school-web
master

搜索帮助