chore: revert other PR content from this branch
This commit is contained in:
parent
c7db77bb6f
commit
59f62f6405
7 changed files with 4 additions and 20 deletions
|
|
@ -133,10 +133,6 @@ vim config/config.json # DISCORD_BOT_TOKEN, プロバイダーの API キ
|
|||
# 3. ビルドと起動
|
||||
docker compose --profile gateway up -d
|
||||
|
||||
> [!TIP]
|
||||
> **Docker ユーザー**: デフォルトでは、Gateway は `127.0.0.1` でリッスンしており、ホストからアクセスできません。ヘルスチェックエンドポイントにアクセスしたり、ポートを公開したりする必要がある場合は、環境変数で `PICOCLAW_GATEWAY_HOST=0.0.0.0` を設定するか、`config.json` を更新してください。
|
||||
|
||||
|
||||
# 4. ログ確認
|
||||
docker compose logs -f picoclaw-gateway
|
||||
|
||||
|
|
|
|||
|
|
@ -165,10 +165,6 @@ vim config/config.json # Set DISCORD_BOT_TOKEN, API keys, etc.
|
|||
# 3. Build & Start
|
||||
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
|
||||
docker compose logs -f picoclaw-gateway
|
||||
|
||||
|
|
|
|||
|
|
@ -172,10 +172,6 @@ vim config/config.json # Configure DISCORD_BOT_TOKEN, API keys, etc.
|
|||
# 3. Build & Iniciar
|
||||
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
|
||||
docker compose logs -f picoclaw-gateway
|
||||
|
||||
|
|
|
|||
|
|
@ -170,10 +170,6 @@ vim config/config.json # 设置 DISCORD_BOT_TOKEN, API keys 等
|
|||
# 3. 構建並啟動
|
||||
docker compose --profile gateway up -d
|
||||
|
||||
> [!TIP]
|
||||
> **Docker 用戶**: 預設情況下,Gateway 監聽 `127.0.0.1`,這在容器內無法從外部訪問。如果您需要透過端口映射訪問健康檢查接口,請在環境變量中設置 `PICOCLAW_GATEWAY_HOST=0.0.0.0` 或修改 `config.json`。
|
||||
|
||||
|
||||
# 4. 查看日志
|
||||
docker compose logs -f picoclaw-gateway
|
||||
|
||||
|
|
|
|||
|
|
@ -142,7 +142,7 @@
|
|||
"monitor_usb": true
|
||||
},
|
||||
"gateway": {
|
||||
"host": "127.0.0.1",
|
||||
"host": "0.0.0.0",
|
||||
"port": 18790
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -413,7 +413,7 @@ func DefaultConfig() *Config {
|
|||
ShengSuanYun: ProviderConfig{},
|
||||
},
|
||||
Gateway: GatewayConfig{
|
||||
Host: "127.0.0.1",
|
||||
Host: "0.0.0.0",
|
||||
Port: 18790,
|
||||
},
|
||||
Tools: ToolsConfig{
|
||||
|
|
|
|||
|
|
@ -246,7 +246,7 @@ func TestDefaultConfig_Temperature(t *testing.T) {
|
|||
func TestDefaultConfig_Gateway(t *testing.T) {
|
||||
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")
|
||||
}
|
||||
if cfg.Gateway.Port == 0 {
|
||||
|
|
@ -343,7 +343,7 @@ func TestConfig_Complete(t *testing.T) {
|
|||
if cfg.Agents.Defaults.MaxToolIterations == 0 {
|
||||
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")
|
||||
}
|
||||
if cfg.Gateway.Port == 0 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue