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.
Click to show internal directories.
Click to hide internal directories.