Documentation
¶
Overview ¶
Package config parses weft-loom's HCL configuration file. Mirrors the openweft convention (cluster.hcl / weft-firstboot / weft-doctor).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// Listen is the bind address (e.g. ":8080"). Default :8080.
Listen string
// StorageRoot is where project files land. With PostgresDSN set,
// this is the shared weft-block volume mount path ; without it,
// LocalStore uses it as the local-FS root.
StorageRoot string
// PostgresDSN, when non-empty, switches the project store from
// LocalStore to PostgresStore. Metadata + ACL live in the DB
// (replicated by weft-ha-postgresql) ; file content stays on
// StorageRoot (a shared weft-block volume across all loom-server
// replicas).
PostgresDSN string
// OIDC issuer URL (dex). Empty = dev mode (auth disabled).
OIDCIssuer string
// OIDC client ID registered with dex.
OIDCClientID string
// CompileTimeout is the per-job cap. Default 5 min.
CompileTimeout time.Duration
// WeftAgentSocket is the path to weft-agent's unix socket the
// compile service dials to spawn microVMs. Empty = simulated
// compile (V0.1 default).
WeftAgentSocket string
}
Config is the parsed configuration.
Click to show internal directories.
Click to hide internal directories.