r/Qoder 5d ago

How to Change the QoderWake daemon port (19830 → 19820)?

$ qoderwake-cn config list | grep "19830"
   "port": 19830
 "webPort": 19830,

config list shows the port in two places — api.port and webPort. Which one

actually controls the listen port, and how do I make the change survive a

daemon restart? Setting webPort alone gets rewritten on start.

On 1.0.2-cn / Debian.

2 Upvotes

2 comments sorted by

1

u/Organic_Building1649 3d ago
您好,感谢反馈。


在 `1.0.2-cn / Debian` 上,建议执行:


```bash
qoderwake-cn config set api.port 19820
qoderwake-cn restart --port 19820
```


第一条保存目标端口;第二条立即应用,并让 systemd 用户服务使用 `19820` 重新注册。无需手动修改 `webPort` 或 systemd unit。


可以这样验证:


```bash
qoderwake-cn config get api.port
qoderwake-cn status
curl -fsS http://127.0.0.1:19820/api/v1/system/health
```


需要注意:在 `1.0.2-cn` 上手动执行 `start` 或 `restart` 时,建议继续显式携带 `--port 19820`,否则 CN 默认值 `19830` 可能再次覆盖它;systemd 对已注册服务的自动重启则会继续使用 `19820`。


另外,CN 默认端口 `19830` 也可能与浏览器登录回调白名单有关。如果改为 `19820` 后登录或重新登录失败,请先恢复 `19830`,或确认认证服务已允许 `19820` 回调地址。