Documentation
¶
Overview ¶
Package config loads server configuration from WORKLY_* environment variables. Command-line flags override these values in cmd/workly.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Port int
DatabaseURL string
APIKey string
SigningSecret string
// PreviousSigningSecret also signs deliveries during a secret rotation.
PreviousSigningSecret string
LogLevel slog.Level
LogFormat string // "json" or "text"
AutoMigrate bool
AutoCreateQueues bool
MaxPayloadBytes int64
// MaxInFlight caps concurrent task deliveries across all queues.
MaxInFlight int
// Retention is how long finished tasks are kept. 0 keeps them forever.
Retention time.Duration
// RunRetention is how long finished schedule runs are kept. It
// defaults to Retention. 0 keeps them forever.
RunRetention time.Duration
// MetricsPort, if set, serves /metrics on its own port without
// authentication instead of on Port.
MetricsPort int
// ShutdownTimeout is how long in-flight requests and deliveries get to
// finish on shutdown.
ShutdownTimeout time.Duration
// MCP sets which tools /mcp serves: read-only (the default), full or off.
MCP mcp.Mode
// PublicURL is where people open Workly; alerts link to it.
PublicURL string
// SMTPURL, if set, sends alert emails through this server, from
// SMTPFrom.
SMTPURL string
SMTPFrom string
}
Click to show internal directories.
Click to hide internal directories.