Files
lxc-streamutils/config.toml.example
T
2026-07-14 21:31:59 -07:00

50 lines
2.1 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
# 转盘系统自己的读写数据库。此账号必须可创建和修改业务表。
[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"
# 外部部署的 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"
# 启用后,服务会用 CookieCloud 中的 bili_jct 和 Cookie 向直播间发送回复。
# 回复失败不会影响记账、抽歌或 OBS 推送。
[reply]
enabled = false
# 默认会记录本服务生命周期信息,并屏蔽 blivedm_rs 的认证响应日志。
# 如需诊断可临时调高本服务级别;不要将 blivedm 设为 info。
[logging]
filter = "lxc_stream_server=info,blivedm=warn,tokio_postgres=warn"