文件名称:bud-backend:芽的示例后端
文件大小:9KB
文件格式:ZIP
更新时间:2024-07-28 15:37:27
JavaScript
芽后端 的示例/模板后端。 用法 命令行界面 $ npm install -g bud-backend $ cat > config.json << JSON { "port": 9000, "host": "127.0.0.1", "sni": { "enabled": true, "store": { "example.com": { "cert": "keys/cert.pem", "key": "keys/key.pem" } } } } JSON $ bud-backend --conf config.json 模块 var bud = require ( 'bud-backend' ) ; bud . createServer ( { // Server Name Indica
【文件预览】:
bud-backend-master
----.gitignore(26B)
----package.json(451B)
----bin()
--------bud-backend.js(1KB)
----example-config.json(194B)
----README.md(3KB)
----keys()
--------cert.pem(1KB)
--------key.pem(2KB)
----lib()
--------bud-backend()
--------bud-backend.js(183B)