wiki.js 默认只能使用 ipv4,这对于家中架设服务非常不便。要开启 ipv6 访问,只需要修改 ~/wiki/config.yml
文件的第102行即可。
- 从:
# ---------------------------------------------------------------------
# IP address the server should listen to
# ---------------------------------------------------------------------
# Leave 0.0.0.0 for all interfaces
bindIP: 0.0.0.0
- 改为:
# ---------------------------------------------------------------------
# IP address the server should listen to
# ---------------------------------------------------------------------
# Leave 0.0.0.0 for all interfaces
# bindIP: 0.0.0.0
bindIP: '::'
- 文档修改后的样子:
之后重新运行 node server 便可以用 ipv6 地址访问了。