Help us shape the future of Go! Take the 2026 Go Developer Survey

config

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const MaxHomeLabelLength = 32

MaxHomeLabelLength bounds the label rendered on the workspace rail's home button; it is a short badge, not a title.

Variables

This section is empty.

Functions

func ParseEmbedFrameAncestors added in v0.2.1

func ParseEmbedFrameAncestors(value string) []string

ParseEmbedFrameAncestors parses the comma- or whitespace-separated format accepted by CLICKCLACK_EMBED_FRAME_ANCESTORS and --embed-frame-ancestors.

Types

type Config

type Config struct {
	Addr                   string   `json:"addr"`
	Data                   string   `json:"data"`
	DB                     string   `json:"db"`
	Uploads                string   `json:"uploads"`
	Environment            string   `json:"environment"`
	MetricsEnabled         bool     `json:"metrics_enabled"`
	AccessLog              string   `json:"access_log"`
	PublicURL              string   `json:"public_url"`
	PublicAPIURL           string   `json:"public_api_url"`
	HomeURL                string   `json:"home_url"`
	HomeLabel              string   `json:"home_label"`
	EmbedFrameAncestors    []string `json:"embed_frame_ancestors"`
	CookieNamespace        string   `json:"cookie_namespace"`
	DevBootstrap           bool     `json:"dev_bootstrap"`
	PasswordAuthEnabled    bool     `json:"password_auth_enabled"`
	GitHubClientID         string   `json:"github_client_id"`
	GitHubClientSecret     string   `json:"github_client_secret"`
	GitHubAllowedOrg       string   `json:"github_allowed_org"`
	GitHubModeratorOrg     string   `json:"github_moderator_org"`
	OpenClawIDClientID     string   `json:"openclaw_id_client_id"`
	OpenClawIDClientSecret string   `json:"openclaw_id_client_secret"`
	OpenClawIDIssuer       string   `json:"openclaw_id_issuer"`
	AccessTeamDomain       string   `json:"access_team_domain"`
	AccessAUD              string   `json:"access_aud"`
	PushoverAPIToken       string   `json:"pushover_api_token"`
	WebPushVAPIDPublicKey  string   `json:"webpush_vapid_public_key"`
	WebPushVAPIDPrivateKey string   `json:"webpush_vapid_private_key"`
	WebPushSubject         string   `json:"webpush_subject"`
	R2AccountID            string   `json:"r2_account_id"`
	R2AccessKeyID          string   `json:"r2_access_key_id"`
	R2SecretAccessKey      string   `json:"r2_secret_access_key"`
	R2Endpoint             string   `json:"r2_endpoint"`
}

func Defaults

func Defaults() Config

func Load

func Load(path string) (Config, error)

func (*Config) ValidateServe added in v0.2.0

func (c *Config) ValidateServe() error

func (*Config) WebPushEnabled added in v0.6.0

func (c *Config) WebPushEnabled() bool

WebPushEnabled reports whether both halves of the VAPID key pair are configured. Every push endpoint and every delivery is off until they are.

Jump to

Keyboard shortcuts

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