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: 5 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 (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2025-07-06T23:39:01.000Z (12 months ago)
- Last Synced: 2025-07-07T00:32:05.997Z (12 months ago)
- Topics: file-server, nginx, nginx-js, njs
- Language: TypeScript
- Homepage: https://hi.imzlh.top/2024/06/16.cgi
- Size: 33.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