-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathconfig.sqlite.yaml
More file actions
101 lines (99 loc) · 3.53 KB
/
Copy pathconfig.sqlite.yaml
File metadata and controls
101 lines (99 loc) · 3.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
server:
port: 8080
host: 0.0.0.0
mode: release
allow_register: false
public_base_url: ""
trusted_proxies: []
# 静态文件路径配置(可选,未配置时使用默认值)
web_dist_dir: ../web/dist # Vue 主应用目录
scada_editor_dir: ../web/dist/scada-editor # SCADA 编辑器目录
form_app_dir: ../form-app/dist # 表单应用目录
database:
type: sqlite
dsn: ./data/app-manager.db
storage:
path: ./uploads
max_size_mb: 500
adb:
path: adb
timeout: 30
ffmpeg:
path: ""
chrome:
path: ""
jwt:
secret: change-me-in-production
expire_hour: 24
heartbeat:
interval: 0
timeout: 0
mqtt:
enabled: false
broker: tcp://localhost:1883
username: ""
password: ""
client_id: app-manager
qos: 1
claude:
api_key: PROXY_MANAGED
model: claude-sonnet-4-6
base_url: http://127.0.0.1:15721
proxy_url: ""
channel:
kafka:
brokers: []
group_id: ""
topics: []
enabled: false
kafka_rest_proxy_url: ""
rate_limit:
enabled: false
login_per_minute: 20
login_burst: 5
open_api_per_minute: 120
open_api_burst: 30
mcp_per_minute: 60
mcp_burst: 15
cluster:
enabled: false
node_id: ""
redis_url: redis://127.0.0.1:6379/0
webrtc:
ice_servers: []
# 第三方平台 SSO 跳转安全(P0)。
# redirect_to 白名单 + HMAC 签名:SSO 链接必须由后端 /api/thirdparty/:id/sso/sign 签发。
# 各 Provider 可在「第三方平台」编辑中覆盖 redirect_allowlist_json 与 hmac_secret。
sso:
enabled: true
redirect_to_whitelist:
- "/"
- "/devices"
- "/devices/*"
- "/work-orders/*"
- "/embed/work-orders/*"
# 生产请用 openssl rand -hex 32 重新生成,并放入密钥管理(勿提交明文到 git)。
# 也可用环境变量 SSO_HMAC_SECRET 覆盖。
hmac_secret: "9ecb26ac06eb95ac1641596bbb51e3863146ba96dfad97df6c12d0e9b2b8b9e2"
hmac_clock_skew_sec: 300
# OnlyOffice Document Server 集成(按需启用)。
# 不启用时(enabled: false),文档管理中的 word/excel/ppt 文档显示「OnlyOffice 未启用」提示。
# 启用后需确保:
# 1. Document Server 已部署并能响应 healthcheck;
# 2. internal_url 与 public_url 按网络拓扑正确填写(通常公网/内网分别填);
# 3. Document Server 的 local.json 中 services.CoEditingConfig.secret 与本 jwt_secret 一致。
onlyoffice:
enabled: false
internal_url: "" # Go 服务访问 DS 的地址,如 http://127.0.0.1:9000
public_url: "" # 浏览器访问 DS 的地址,如 https://docs.example.com
jwt_secret: "" # 与 Document Server services.CoEditingConfig.secret 一致;留空则不签 token(DS 端需关闭 JWT 校验)
lang: zh-CN # 编辑器界面语言
default_mode: edit # 默认编辑器模式 edit | view
autosave: true # 编辑过程中自动保存快照
forcesave: true # 保存按钮触发后必写入新版本
allow_print: true # 是否允许打印/导出 PDF
allow_comment: true # 是否允许评论与协同批注
custom_logo_url: "" # 自定义 logo 跳转链接(留空使用 DS 默认)
custom_logo_image: "" # 自定义 logo 图片 URL(留空使用 DS 默认)
download_timeout_sec: 60 # 拉取 OnlyOffice 回调结果文件超时(秒)
file_token_ttl_sec: 86400 # ds_file 短期 token 有效期(秒),默认 24 小时