Documentation
¶
Overview ¶
Package configgen owns the full-client-only standalone cloudflared configuration renderer. Runtime artifacts intentionally do not import it.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RenderStandaloneConfig ¶
func RenderStandaloneConfig(cfg StandaloneConfig) ([]byte, error)
RenderStandaloneConfig renders a deterministic cloudflared YAML config that keeps the tunnel token out of argv and out of the config file itself.
Types ¶
type StandaloneConfig ¶
type StandaloneConfig struct {
TokenFile string
MetricsAddress string
LogLevel string
TransportLogLevel string
Protocol string
EdgeIPVersion string
Retries int
GracePeriod time.Duration
}
StandaloneConfig is the token-free cloudflared runtime configuration emitted for operators who intentionally run cloudflared without tunnel-client.
TokenFile is a path only. The generator never reads or embeds the tunnel token, so the rendered config is safe to check into deployment manifests.
func DefaultStandaloneConfig ¶
func DefaultStandaloneConfig(tokenFile string) StandaloneConfig
DefaultStandaloneConfig returns the reviewed production defaults for a directly supervised cloudflared process.