1.1.5 • Published 3 months ago

@rimifon/asp v1.1.5

Weekly downloads
-
License
ISC
Repository
github
Last release
3 months ago

支持 HTTP 和 HTTPS,支持经典ASP(JScript)的基本写法,支持断点续传,反向代理。 Supporting both HTTP and HTTPS, it provides basic configurations for Classic ASP (using JScript), supports resumable file downloads (resuming broken transfers), and includes reverse proxy functionality.

Sample code:

cp node_modules/\@rimifon/asp/test.js ./ cp node_modules/\@rimifon/asp/default.asp ./ node test.js

启用 https,需要在 ./ssl/default 目录下放置默认证书 key 和 cert 文件,且文件名分别为:key.pem 和 server.crt。 To enable HTTPS, it is necessary to place the default certificate key and cert files in the ./ssl/default directory, with respective filenames of key.pem and server.crt.

然后在启动脚本中编辑配置站点证书(例如 test.js),编辑对应的 host,设置该 host 的 cert 和 key 文件位置: Subsequently, in the startup script, edit the configuration for the site's certificate (for example, in test.js), and set the corresponding host's cert and key file locations:

hosts: [
	// 默认第一个网站
	{ domain: "default", root: ".", cert: "./ssl/www.yourdomain.com.crt", key: "./ssl/www.yourdomain.com.key" }
],
1.1.5

3 months ago

1.1.4

3 months ago

1.1.3

3 months ago

1.1.2

3 months ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago