add gateway token-based node registration over host:port and shared nodes manager

This commit is contained in:
DBT
2026-02-24 16:06:44 +00:00
parent 42a5be0cec
commit 07cf54538e
8 changed files with 100 additions and 6 deletions

View File

@@ -194,8 +194,9 @@ type ProviderConfig struct {
}
type GatewayConfig struct {
Host string `json:"host" env:"CLAWGO_GATEWAY_HOST"`
Port int `json:"port" env:"CLAWGO_GATEWAY_PORT"`
Host string `json:"host" env:"CLAWGO_GATEWAY_HOST"`
Port int `json:"port" env:"CLAWGO_GATEWAY_PORT"`
Token string `json:"token" env:"CLAWGO_GATEWAY_TOKEN"`
}
type CronConfig struct {
@@ -423,8 +424,9 @@ func DefaultConfig() *Config {
Proxies: map[string]ProviderConfig{},
},
Gateway: GatewayConfig{
Host: "0.0.0.0",
Port: 18790,
Host: "0.0.0.0",
Port: 18790,
Token: "",
},
Cron: CronConfig{
MinSleepSec: 1,