tweaked v1

This commit is contained in:
2026-07-15 22:14:58 -07:00
parent c9d497153f
commit b8850c87a4
23 changed files with 4567 additions and 119 deletions
+44 -11
View File
@@ -1,4 +1,4 @@
# 洛星瓷直播转盘服务配置。
# 洛星瓷直播弹幕姬配置。
#
# 使用方式:复制为 config.toml 后填写所有 replace-with-* 项;该文件包含
# CookieCloud、数据库和访问令牌等敏感信息,请不要提交或公开分享。
@@ -14,13 +14,9 @@ room_id = "000000"
[server]
port = 9719
# 转盘系统自己的读写数据库。此账号必须可创建和修改业务表。
# 弹幕姬设置数据库。此账号必须可创建和修改 overlay_settings 表。
[database]
url = "postgresql://wheel:replace-with-wheel-password@127.0.0.1:5432/wheel?sslmode=disable"
# 洛星瓷歌单数据库,只用于读取歌曲和标签,建议使用只读账号。
[songlist]
database_url = "postgresql://lxc_songlist:replace-with-songlist-password@127.0.0.1:5432/lxc_songlist?sslmode=disable"
url = "postgresql://streamutils:replace-with-database-password@127.0.0.1:5432/streamutils?sslmode=disable"
# 外部部署的 CookieCloud 实例。key 是同步 UUID;password 是同步密码。
[cookiecloud]
@@ -38,10 +34,47 @@ session_secret = "replace-with-at-least-32-random-characters"
[obs]
access_token = "replace-with-a-long-random-obs-token"
# 启用后,服务会用 CookieCloud 中的 bili_jct 和 Cookie 向直播间发送回复。
# 回复失败不会影响记账、抽歌或 OBS 推送。
[reply]
enabled = false
# 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。