Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/imzlh/vlist-njs
vList Server impl for njs(Nginx JavaScript)
https://github.com/imzlh/vlist-njs
file-server nginx nginx-js njs
Last synced: 3 months ago
JSON representation
vList Server impl for njs(Nginx JavaScript)
- Host: GitHub
- URL: https://github.com/imzlh/vlist-njs
- Owner: imzlh
- Created: 2024-07-07T07:29:52.000Z (7 months ago)
- Default Branch: master
- Last Pushed: 2024-09-16T05:38:44.000Z (5 months ago)
- Last Synced: 2024-09-16T06:55:23.827Z (5 months ago)
- Topics: file-server, nginx, nginx-js, njs
- Language: TypeScript
- Homepage: https://hi.imzlh.top/2024/06/16.cgi
- Size: 32.2 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# vList Server for nJS
(为`njs`设计的vList5后端,适用于Nginx NJS >= 0.80)## 使用
首先需要使用tsc编译为`main.js`,使用`tsc --target ES2022 main.ts`
或者下载release中编译完成的JavaScript文件
接下来在nginx配置文件`server`块中添加:
js_import main.js;
location = /@api/{
js_content main.main;
}保存重启
# 加密配置
参考 https://hi.imzlh.top/2024/07/12.cgi