config

package
v1.12.2 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2026 License: MIT Imports: 2 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package config loads vellum configuration from environment variables. vellum has no config database: everything is env (and later vellum.yaml).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// Port is the HTTP listen port (env PORT).
	Port string
	// VaultPath is the root directory of the markdown vault (env VELLUM_VAULT_PATH).
	VaultPath string

	// InitStructure creates inbox/projects/archive in an empty vault at
	// startup (env VELLUM_INIT_STRUCTURE, default true).
	InitStructure bool
	// InboxDir, ProjectsDir, ArchiveDir name the conventional directories
	// (env VELLUM_INBOX_DIR / VELLUM_PROJECTS_DIR / VELLUM_ARCHIVE_DIR).
	InboxDir    string
	ProjectsDir string
	ArchiveDir  string

	// Curator enables the suggest_*/find_* MCP tools
	// (env VELLUM_CURATOR=on|off, default off).
	Curator bool

	// Notify enables the periodic SMTP task digest (env VELLUM_NOTIFY=on|off,
	// default off). SMTP_* settings are read by the notify package.
	Notify bool

	// Sentry error reporting (off unless SENTRY_DSN is set). SentryEnvironment
	// tags events (env SENTRY_ENVIRONMENT, default "production").
	SentryDSN         string
	SentryEnvironment string

	// AllowedOrigins are browser origins allowed to reach /mcp
	// (env VELLUM_ALLOWED_ORIGINS, comma-separated).
	AllowedOrigins []string

	// CORSOrigins get CORS response headers (env CORS_ORIGINS; defaults to
	// AllowedOrigins). Kept separate to recycle openclaw-mcp env names.
	CORSOrigins []string

	// OAuth (PHY-112, env names recycled from openclaw-mcp).
	AuthEnabled  bool     // AUTH_ENABLED (default false — warn loudly)
	ClientID     string   // VELLUM_CLIENT_ID (default "vellum")
	ClientSecret string   // VELLUM_CLIENT_SECRET (>= 32 chars when auth on)
	IssuerURL    string   // VELLUM_ISSUER_URL (public URL behind a proxy)
	RedirectURIs []string // VELLUM_REDIRECT_URIS (empty = allow any)
	TrustProxy   bool     // TRUST_PROXY (behind Caddy/Traefik)
}

Config holds the runtime configuration.

func Load

func Load() Config

Load reads configuration from the environment, applying defaults.

Jump to

Keyboard shortcuts

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