chore: revert other PR content from this branch
This commit is contained in:
parent
d595d414d3
commit
963b26c551
7 changed files with 4 additions and 20 deletions
|
|
@ -133,10 +133,6 @@ vim config/config.json # DISCORD_BOT_TOKEN, プロバイダーの API キ
|
||||||
# 3. ビルドと起動
|
# 3. ビルドと起動
|
||||||
docker compose --profile gateway up -d
|
docker compose --profile gateway up -d
|
||||||
|
|
||||||
> [!TIP]
|
|
||||||
> **Docker ユーザー**: デフォルトでは、Gateway は `127.0.0.1` でリッスンしており、ホストからアクセスできません。ヘルスチェックエンドポイントにアクセスしたり、ポートを公開したりする必要がある場合は、環境変数で `PICOCLAW_GATEWAY_HOST=0.0.0.0` を設定するか、`config.json` を更新してください。
|
|
||||||
|
|
||||||
|
|
||||||
# 4. ログ確認
|
# 4. ログ確認
|
||||||
docker compose logs -f picoclaw-gateway
|
docker compose logs -f picoclaw-gateway
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -165,10 +165,6 @@ vim config/config.json # Set DISCORD_BOT_TOKEN, API keys, etc.
|
||||||
# 3. Build & Start
|
# 3. Build & Start
|
||||||
docker compose --profile gateway up -d
|
docker compose --profile gateway up -d
|
||||||
|
|
||||||
> [!TIP]
|
|
||||||
> **Docker Users**: By default, the Gateway listens on `127.0.0.1` which is not accessible from the host. If you need to access the health endpoints or expose ports, set `PICOCLAW_GATEWAY_HOST=0.0.0.0` in your environment or update `config.json`.
|
|
||||||
|
|
||||||
|
|
||||||
# 4. Check logs
|
# 4. Check logs
|
||||||
docker compose logs -f picoclaw-gateway
|
docker compose logs -f picoclaw-gateway
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -172,10 +172,6 @@ vim config/config.json # Configure DISCORD_BOT_TOKEN, API keys, etc.
|
||||||
# 3. Build & Iniciar
|
# 3. Build & Iniciar
|
||||||
docker compose --profile gateway up -d
|
docker compose --profile gateway up -d
|
||||||
|
|
||||||
> [!TIP]
|
|
||||||
> **Usuários Docker**: Por padrão, o Gateway ouve em `127.0.0.1`, o que não é acessível a partir do host. Se você precisar acessar os endpoints de integridade ou expor portas, defina `PICOCLAW_GATEWAY_HOST=0.0.0.0` em seu ambiente ou atualize o `config.json`.
|
|
||||||
|
|
||||||
|
|
||||||
# 4. Ver logs
|
# 4. Ver logs
|
||||||
docker compose logs -f picoclaw-gateway
|
docker compose logs -f picoclaw-gateway
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -170,10 +170,6 @@ vim config/config.json # 设置 DISCORD_BOT_TOKEN, API keys 等
|
||||||
# 3. 構建並啟動
|
# 3. 構建並啟動
|
||||||
docker compose --profile gateway up -d
|
docker compose --profile gateway up -d
|
||||||
|
|
||||||
> [!TIP]
|
|
||||||
> **Docker 用戶**: 預設情況下,Gateway 監聽 `127.0.0.1`,這在容器內無法從外部訪問。如果您需要透過端口映射訪問健康檢查接口,請在環境變量中設置 `PICOCLAW_GATEWAY_HOST=0.0.0.0` 或修改 `config.json`。
|
|
||||||
|
|
||||||
|
|
||||||
# 4. 查看日志
|
# 4. 查看日志
|
||||||
docker compose logs -f picoclaw-gateway
|
docker compose logs -f picoclaw-gateway
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -142,7 +142,7 @@
|
||||||
"monitor_usb": true
|
"monitor_usb": true
|
||||||
},
|
},
|
||||||
"gateway": {
|
"gateway": {
|
||||||
"host": "127.0.0.1",
|
"host": "0.0.0.0",
|
||||||
"port": 18790
|
"port": 18790
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -413,7 +413,7 @@ func DefaultConfig() *Config {
|
||||||
ShengSuanYun: ProviderConfig{},
|
ShengSuanYun: ProviderConfig{},
|
||||||
},
|
},
|
||||||
Gateway: GatewayConfig{
|
Gateway: GatewayConfig{
|
||||||
Host: "127.0.0.1",
|
Host: "0.0.0.0",
|
||||||
Port: 18790,
|
Port: 18790,
|
||||||
},
|
},
|
||||||
Tools: ToolsConfig{
|
Tools: ToolsConfig{
|
||||||
|
|
|
||||||
|
|
@ -246,7 +246,7 @@ func TestDefaultConfig_Temperature(t *testing.T) {
|
||||||
func TestDefaultConfig_Gateway(t *testing.T) {
|
func TestDefaultConfig_Gateway(t *testing.T) {
|
||||||
cfg := DefaultConfig()
|
cfg := DefaultConfig()
|
||||||
|
|
||||||
if cfg.Gateway.Host != "127.0.0.1" {
|
if cfg.Gateway.Host != "0.0.0.0" {
|
||||||
t.Error("Gateway host should have default value")
|
t.Error("Gateway host should have default value")
|
||||||
}
|
}
|
||||||
if cfg.Gateway.Port == 0 {
|
if cfg.Gateway.Port == 0 {
|
||||||
|
|
@ -343,7 +343,7 @@ func TestConfig_Complete(t *testing.T) {
|
||||||
if cfg.Agents.Defaults.MaxToolIterations == 0 {
|
if cfg.Agents.Defaults.MaxToolIterations == 0 {
|
||||||
t.Error("MaxToolIterations should not be zero")
|
t.Error("MaxToolIterations should not be zero")
|
||||||
}
|
}
|
||||||
if cfg.Gateway.Host != "127.0.0.1" {
|
if cfg.Gateway.Host != "0.0.0.0" {
|
||||||
t.Error("Gateway host should have default value")
|
t.Error("Gateway host should have default value")
|
||||||
}
|
}
|
||||||
if cfg.Gateway.Port == 0 {
|
if cfg.Gateway.Port == 0 {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue