config: add enabled field for individual proxy and visitor (#5048)

This commit is contained in:
fatedier
2025-11-06 14:05:03 +08:00
committed by GitHub
parent e025843d3c
commit b27b846971
5 changed files with 31 additions and 4 deletions

View File

@@ -108,8 +108,11 @@ type DomainConfig struct {
}
type ProxyBaseConfig struct {
Name string `json:"name"`
Type string `json:"type"`
Name string `json:"name"`
Type string `json:"type"`
// Enabled controls whether this proxy is enabled. nil or true means enabled, false means disabled.
// This allows individual control over each proxy, complementing the global "start" field.
Enabled *bool `json:"enabled,omitempty"`
Annotations map[string]string `json:"annotations,omitempty"`
Transport ProxyTransport `json:"transport,omitempty"`
// metadata info for each proxy