Expand description
User-configurable settings for pitchfork.
Settings can be configured in multiple ways (in order of precedence):
- Environment variables (highest priority)
- Project-level
pitchfork.tomlorpitchfork.local.toml(in[settings]section) - User-level
~/.config/pitchfork/config.toml(in[settings]section) - System-level
/etc/pitchfork/config.toml(in[settings]section) - Built-in defaults (lowest priority)
Example pitchfork.toml with settings:
[daemons.myapp]
run = "node server.js"
[settings.general]
autostop_delay = "5m"
log_level = "debug"
[settings.web]
auto_start = trueThe structs below are the single declaration of every setting:
#[derive(usage_rs::Config)] generates the usage-config registry, the
reader that fills the structs from a resolution, and the spec config
block that documents them (carried into pitchfork.usage.kdl through
#[usage(config = ...)] on the CLI root). There is no settings.toml
and no build-script generator left to keep in step with this file.
Resolution is usage-config’s single origin-tracked merge, so explicitly
setting a value equal to the default in a higher-precedence file still
overrides a lower one, and pitchfork settings renders provenance from
the same merge that produced the values.
Structs§
- Settings
- Every setting pitchfork has.
- Settings
Api - The
api.*settings: the standalone API server (JSON REST endpoints for the Vue SPA). Whenapi.bind_portis set, the API server binds independently of the web UI. - Settings
ApiPartial - Partial mirror of
SettingsApi. - Settings
General - The
general.*settings. - Settings
General Partial - Partial mirror of
SettingsGeneral. - Settings
Ipc - The
ipc.*(inter-process communication) settings. - Settings
IpcPartial - Partial mirror of
SettingsIpc. - Settings
Logs - The
logs.*settings. - Settings
Logs Archive Hook - The
logs.archive_hook.*settings. - Settings
Logs Archive Hook Partial - Partial mirror of
SettingsLogsArchiveHook. - Settings
Logs Partial - Partial mirror of
SettingsLogs. - Settings
Partial - Partial mirror of
Settings, for[settings]tables in pitchfork.toml files. - Settings
Proxy - The
proxy.*settings. - Settings
Proxy Partial - Partial mirror of
SettingsProxy. - Settings
Supervisor - The
supervisor.*settings. - Settings
Supervisor Partial - Partial mirror of
SettingsSupervisor. - Settings
Tui - The
tui.*(terminal UI) settings. - Settings
TuiPartial - Partial mirror of
SettingsTui. - Settings
Web - The
web.*(web UI) settings. - Settings
WebPartial - Partial mirror of
SettingsWeb.
Functions§
- reload_
settings - Reload settings from config files.
- settings
- Get the global settings instance