simplify setup process

This commit is contained in:
yusing
2025-02-11 05:05:56 +08:00
parent 2c57e439d5
commit 3332ce34c5
21 changed files with 386 additions and 206 deletions

View File

@@ -3,7 +3,7 @@ package common
const (
CommandStart = ""
CommandSetup = "setup"
CommandNewAgent = "new-agent"
CommandAddAgent = "add-agent"
CommandValidate = "validate"
CommandListConfigs = "ls-config"
CommandListRoutes = "ls-routes"
@@ -20,7 +20,7 @@ func (v MainServerCommandValidator) IsCommandValid(cmd string) bool {
switch cmd {
case CommandStart,
CommandSetup,
CommandNewAgent,
CommandAddAgent,
CommandValidate,
CommandListConfigs,
CommandListRoutes,

View File

@@ -20,8 +20,7 @@ var (
IsTrace = GetEnvBool("TRACE", false) && IsDebug
IsProduction = !IsTest && !IsDebug
EnableLogStreaming = GetEnvBool("LOG_STREAMING", true)
DebugMemLogger = GetEnvBool("DEBUG_MEM_LOGGER", false) && EnableLogStreaming
DebugMemLogger = GetEnvBool("DEBUG_MEM_LOGGER", false)
ProxyHTTPAddr,
ProxyHTTPHost,