修改节点动态配置

This commit is contained in:
2026-06-16 14:12:44 +08:00
parent 25cacf0bca
commit 49d2df54f5
3 changed files with 2 additions and 10 deletions

View File

@@ -40,14 +40,6 @@ services:
depends_on: depends_on:
- redis - redis
gost:
image: gogost/gost
command: >
-api test:test@:9700
ports:
- "9700:9700"
restart: unless-stopped
volumes: volumes:
postgres_data: postgres_data:
redis_data: redis_data:

View File

@@ -42,7 +42,7 @@ type gostClient struct {
var GostInitializer = func(host string, port int, pathPrefix, username, password string) GostClient { var GostInitializer = func(host string, port int, pathPrefix, username, password string) GostClient {
baseURL := strings.TrimSpace(host) baseURL := strings.TrimSpace(host)
if !strings.Contains(baseURL, "://") { if !strings.Contains(baseURL, "://") {
baseURL = fmt.Sprintf("http://%s:%d", baseURL, port) baseURL = fmt.Sprintf("https://%s", baseURL)
} }
return &gostClient{ return &gostClient{

View File

@@ -51,7 +51,7 @@ func (s *channelGostProvider) prepareCreate(ctx *channelCreateContext) (*channel
Type: "tcp", Type: "tcp",
}, },
Recorders: []g.GostRecorderConfig{ Recorders: []g.GostRecorderConfig{
{Name: "record-file", Record: "recorder.service.handler"}, {Name: "record-http-otel", Record: "recorder.service.handler"},
}, },
} }