Files
lxc-streamutils/config.toml.example
T
2026-07-15 22:14:58 -07:00

83 lines
3.2 KiB
TOML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 洛星瓷直播弹幕姬配置。
#
# 使用方式:复制为 config.toml 后填写所有 replace-with-* 项;该文件包含
# CookieCloud、数据库和访问令牌等敏感信息,请不要提交或公开分享。
# Docker Compose 会将它以只读方式挂载到容器的 /app/config.toml。
# 与 blivedm_rs 一致的连接配置段。实际 Bilibili Cookie 不写在这里,
# 服务会通过下方 [cookiecloud] 在运行时获取最新 Cookie。
[connection]
room_id = "000000"
# cookies = "SESSDATA=..." # 不需要;由 CookieCloud 托管。
# HTTP、WebSocket 及静态前端监听端口。host 网络模式下为宿主机端口。
[server]
port = 9719
# 弹幕姬设置数据库。此账号必须可创建和修改 overlay_settings 表。
[database]
url = "postgresql://streamutils:replace-with-database-password@127.0.0.1:5432/streamutils?sslmode=disable"
# 外部部署的 CookieCloud 实例。key 是同步 UUID;password 是同步密码。
[cookiecloud]
host = "http://127.0.0.1:8088"
key = "replace-with-cookiecloud-uuid"
password = "replace-with-cookiecloud-password"
# 管理台登录密码和用于签发 HTTP-only 会话 Cookie 的随机密钥。
# session_secret 建议至少 32 个随机字符。
[admin]
password = "replace-with-a-long-admin-password"
session_secret = "replace-with-at-least-32-random-characters"
# OBS 页面只读订阅令牌;浏览器源 URL 为 /obs?token=<access_token>。
[obs]
access_token = "replace-with-a-long-random-obs-token"
# Bilibili 礼物目录缓存。启动时会立即加载,之后按此间隔刷新;
# 请求失败会继续使用上一次成功结果。刷新间隔最小 60 秒。
[gifts]
refresh_interval_seconds = 600
request_timeout_seconds = 10
# Bilibili 直播间表情目录缓存。接口使用 CookieCloud 中的 SESSDATA;
# 实时消息自带的表情图片始终优先,目录仅用于补齐缺失的图片地址。
[emoticons]
refresh_interval_seconds = 600
request_timeout_seconds = 10
# OBS 弹幕姬的初始设置。仅当该直播间尚未通过 /control 保存过设置时使用;
# 一旦控制台保存,PostgreSQL 中的设置优先。价格阈值单位为千分之一元,
# 因此 10000 = 10 元、100000 = 100 元。
[overlay]
title = "洛星瓷专用弹幕猪!"
# 全局字号百分比,可在管理控制台中实时调整;允许范围 50-300。
font_scale = 140
max_visible = 5
collapse_after_seconds = 12
# 新弹幕卷轴从中心向两侧展开的时长,单位毫秒;允许范围 200-5000。
unfold_duration_ms = 1000
motion_intensity = 70
# 每张消息卡片的闪光粒子数量;0 可关闭粒子,允许范围 0-12。
particle_count = 8
# 粒子动画速度百分比;100 为标准速度,允许范围 25-300。
particle_speed = 100
low_performance_mode = false
high_value_threshold = 10000
featured_value_threshold = 100000
# 初始显示的事件类别,同样可在 /control 中随时修改并实时同步到 OBS。
[overlay.events]
danmaku = true
enter = true
gift = true
superchat = true
guard = true
like = false
share = false
# 默认会记录本服务生命周期信息,并屏蔽 blivedm_rs 的认证响应日志。
# 如需诊断可临时调高本服务级别;不要将 blivedm 设为 info。
[logging]
filter = "lxc_stream_server=info,blivedm=warn,tokio_postgres=warn"