GPT
相关工具集
GPT私有化部署
部署ChatGPT网页应用
DeepSeek
VsCode集成
Open Web-UI
Ollama
keep AI告警
FastGPT工作流
Dify 工作流
n8n工作流
Hexstrike-AI 渗透测试
Opencode
nodejs
Vibe kanban(AI任务管理看板)
Openclaw
配置示例
飞书对接
局域网访问
ACP
claude code
本文档使用MrDoc发布
返回首页
-
+
局域网访问
2026年2月25日 07:34
admin
#修改配置 ####vim .openclaw/openclaw.json --- ####使用你喜欢的文本编辑器打开该文件,找到 "gateway" 部分,并进行如下修改: 启用 TLS - Gateway 配置了 - gateway.tls.enabled: true - autoGenerate: true --- ####更新 allowedOrigins - 添加了 https://172.16.2.183:18789 --- ####将 "bind" 的值改为 "lan"。 --- ####添加或确认 "allowInsecureAuth": true #这允许在局域网 HTTP 环境下进行认证 --- "gateway": { "port": 18789, "mode": "local", "bind": "lan", "controlUi": { "allowedOrigins": [ "http://172.16.2.183:18789", "https://172.16.2.183:18789", "http://172.16.2.183:28789", "https://172.16.2.183:28789" ], "allowInsecureAuth": true }, "auth": { "mode": "token", "token": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" }, "tailscale": { "mode": "off", "resetOnExit": false }, "nodes": { "denyCommands": [ "camera.snap", "camera.clip", "screen.record", "calendar.add", "contacts.add", "reminders.add" ] }, "tls": { "enabled": true, "autoGenerate": true } }, --- #允许授权访问 ####在服务器上运行 openclaw devices list 查看待处理请求 openclaw devices list --- ####运行 openclaw devices approve <request-id> 批准 openclaw devices approve <request-id>
分享到: