configgen

package
v0.0.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 26, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL