Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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)

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