无编辑摘要 |
无编辑摘要 |
||
第26行: | 第26行: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
API 监听端口位于 15551。您可自行选择配置代理。<code>infobox_render</code> 配置项 | API 监听端口位于 15551。您可自行选择配置代理。 | ||
请在[[配置文件]]中 <code>infobox_render</code> 配置项填写访问地址,如<code><nowiki>http://127.0.0.1:15551/</nowiki></code>。 | |||
[[Category:开发]] | [[Category:开发]] |
2024年2月7日 (三) 07:55的版本
在此对 Web render
设置项进行说明。
本文假定您有基础 Node.js 操作技能。配置过程中需要 yarn。
$ git clone https://github.com/Teahouse-Studios/oa-web-render
$ cd oa-web-render
$ yarn install
$ yarn build
前往 https://github.com/adieuadieu/serverless-chrome/releases 下载任意版本 Chromium(Linux),或前往 Chromium 官方进行下载。
放置于某一位置,配置好执行权限。
在上方clone的仓库目录中新建 .env
文件,内容如下:
CHROMIUM_PATH = # Chromium 可执行文件位置
之后,运行 dist/index.js
。
$ node dist/index.js
API 监听端口位于 15551。您可自行选择配置代理。
请在配置文件中 infobox_render
配置项填写访问地址,如http://127.0.0.1:15551/
。