Skip to content
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

[Bug]: 求助同步功能无法连接服务器 #2124

Closed
2 tasks done
disburden opened this issue Nov 21, 2024 · 2 comments
Closed
2 tasks done

[Bug]: 求助同步功能无法连接服务器 #2124

disburden opened this issue Nov 21, 2024 · 2 comments

Comments

@disburden
Copy link

解决方案检查

预期行为

这是我的docker-compose配置文件内容

version: '3'
services:
  lx-music:
    container_name: lx-music
    image: lyswhut/lx-music-sync-server
    ports:
      - "18889:9527"
    environment:
      - BIND_IP=0.0.0.0
      - LX_USER_user1=xxxx
    restart: always
    volumes:
      - $PWD/data:/server/data

docker运行正常
截图_选择区域_20241121141253
但是客户端就是死活提示连不上服务器
截图_选择区域_20241121141514
用的cloudflare解析域名,在浏览器中直接输入同步服务器地址会返回字符串"Forbidden"
求助如何正确配置同步服务器...

实际行为

原本希望能正常连接同步服务器,但一直提示连接失败

Lx Music 版本

2.9.0

最后正常的版本

No response

操作系统版本

Linux dao 6.9.6-amd64-desktop-rolling #23.01.01.02 SMP PREEMPT_DYNAMIC Tue Jul 23 12:20:02 CST 2024 x86_64 GNU/Linux

附加信息

No response

@lyswhut
Copy link
Owner

lyswhut commented Nov 21, 2024

同步服务会用到websocket,如果客户端非直连同步服务,需确保websocket也已正常代理,
可以清理日志后,勾选记录同步日志看看输出,docker 部署可以参考 lyswhut/lx-music-sync-server#4

@disburden
Copy link
Author

搞定了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants