Skip to content

Commit

Permalink
docs: 速度限制的说明
Browse files Browse the repository at this point in the history
  • Loading branch information
bangbang93 committed Jan 25, 2024
1 parent 1f21a9b commit ebc5f56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ docker pull registry.bangbang93.com/bmclapi/openbmclapi
如果你在源码中发现了其他环境变量,那么它们是为了方便开发而存在的,可能会随时修改,不要在生产环境中使用

## 速度限制
如果使用docker启动进程,可以将cmd设置为`tinc -- trickle -u 10240 node --enable-source-maps dist/index`来限制速度。
如果使用docker启动进程,可以将cmd设置为`trickle -s -u 10240 node --enable-source-maps dist/index`来限制速度。
此处-u 10240表示限制**上传**速度为10MB/s。

非docker环境可以在宿主机上安装trickle,然后使用trickle来启动nodejs进程,一般的Linux包管理均可直接安装trickle。
Expand Down

0 comments on commit ebc5f56

Please sign in to comment.