-
-
Notifications
You must be signed in to change notification settings - Fork 178
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
采用config.json配置方式 #94
Labels
文档
帮助文档
Comments
正需要,有配置文件方便多了 |
ffmpeg 如果是用 apt install 这类系统工具安装的,默认会在 /usr/bin 目录下,ffmpeg_location 这个参数就需要设置为 /usr/bin . 目前 armv7 cpu 的 docker 镜像里的 ffmpeg 有问题,最好是用 pip 方式安装运行。 |
armv7 问题已经解决。 |
Open
Open
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
docker 方式部署默认推荐使用环境变量的方式来配置参数,如果是自己用命令行启动,目前支持的参数配置比较少,但是是支持
--config
参数。使用 pip 安装 xiaomusic 【0.1.83版本才支持 pip 安装】
依赖的 ffmpeg 需要自己安装。
仓库中有个 config-example.json 文件,可以把这个文件拷贝为 config.json 然后修改 config.json 里的配置,再用下面的命令启动。
默认的 config.json 模板如下:
如果采用 docker compose 启动想用 config.json 的配置方式,可以这样配:
主要就是把 config.json 文件映射进容器和传
--config
参数。The text was updated successfully, but these errors were encountered: