nuwax-deploy-installer 0.2.3 → 0.2.8-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/vendor/darwin-arm64/deploy-installer +0 -0
- package/vendor/darwin-arm64/document-parser +0 -0
- package/vendor/darwin-arm64/voice-cli +0 -0
- package/vendor/templates/document-parser/.document-parser.env.example +13 -4
- package/vendor/templates/document-parser/config.example.yml +11 -0
- package/vendor/templates/manifest.json +1 -1
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,13 +1,22 @@
|
|
|
1
|
-
# document-parser
|
|
1
|
+
# document-parser 环境变量(上传后端凭证:下方 OSS 或自定义上传后端二选一)
|
|
2
2
|
#
|
|
3
3
|
# 格式要点:
|
|
4
4
|
# - 不要写 export(systemd EnvironmentFile 不识别 shell 语法),纯 KEY=value
|
|
5
5
|
# - 值含特殊字符用单引号: KEY='value'
|
|
6
6
|
# - 权限: chmod 600 .document-parser.env && chown <运行用户> .document-parser.env
|
|
7
7
|
|
|
8
|
-
# ===== 阿里云 OSS
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
# ===== 阿里云 OSS 密钥(云端部署;与下方自定义上传后端二选一)=====
|
|
9
|
+
# 未启用时保持注释即可;启用时去掉注释并填值(或交给 install 自动写入)
|
|
10
|
+
# OSS_ACCESS_KEY_ID=
|
|
11
|
+
# OSS_ACCESS_KEY_SECRET=
|
|
12
|
+
|
|
13
|
+
# ===== 自定义上传后端(nuwax 风格 REST,私有部署;与上方 OSS 二选一)=====
|
|
14
|
+
# base_url 非空即启用;api_key 可为空(无鉴权部署);path 兜底 /api/v1/file/upload
|
|
15
|
+
# 契约详见 crates/document-parser/CUSTOM_UPLOAD_API.md
|
|
16
|
+
# 未启用时保持注释即可;启用时去掉注释并填值(或交给 install 自动写入)
|
|
17
|
+
# DOCUMENT_PARSER_CUSTOM_UPLOAD_BASE_URL=
|
|
18
|
+
# DOCUMENT_PARSER_CUSTOM_UPLOAD_API_KEY=
|
|
19
|
+
# DOCUMENT_PARSER_CUSTOM_UPLOAD_PATH=/api/v1/file/upload
|
|
11
20
|
|
|
12
21
|
# ===== 以下为可选环境变量(一般无需手动设)=====
|
|
13
22
|
# document-parser 会按 config.yml 自动把 device/vram/model-source 注入给 mineru 子进程
|
|
@@ -69,6 +69,17 @@ storage:
|
|
|
69
69
|
region: "oss-rg-china-mainland"
|
|
70
70
|
upload_directory: "document_parser"
|
|
71
71
|
|
|
72
|
+
# 自定义文件上传后端(nuwax 风格 REST API)——可选,与 OSS 二选一
|
|
73
|
+
# base_url 留空/整段缺省 = 未启用(解析产物走上面的 OSS)
|
|
74
|
+
# 配置后:不带 upload_* 请求参数的请求默认走此后端;请求级参数可逐项覆盖
|
|
75
|
+
# 接口契约:POST {base_url}{path}?type=store|tmp,Authorization: Bearer <api_key>,
|
|
76
|
+
# multipart 字段 file;响应 code=="0000" 且 data.url/data.key 为上传结果
|
|
77
|
+
# 注意:api_key 会以明文保存在任务记录中(内网部署取舍)
|
|
78
|
+
custom_upload:
|
|
79
|
+
base_url: "" # 例:https://agent.example.com
|
|
80
|
+
api_key: "" # Bearer API Key
|
|
81
|
+
path: "/api/v1/file/upload" # 上传接口路径(默认 nuwax 契约)
|
|
82
|
+
|
|
72
83
|
file_size_config:
|
|
73
84
|
max_file_size: "200MB"
|
|
74
85
|
large_document_threshold: "50MB"
|