mirror of
https://github.com/hatchet-dev/hatchet.git
synced 2026-03-20 19:50:47 -05:00
1015 B
1015 B
Updating Configuration
Modifications to Hatchet's configuration should be reflected in the appropriate pkg/config package and wired in pkg/config/loader/loader.go.
type ServerConfig struct {
RequestTimeout time.Duration `mapstructure:"request_timeout"`
}
To ensure configuration is loadable via environment variables, add the corresponding BindEnv call in BindAllEnv().
func BindAllEnv(v *viper.Viper) {
v.BindEnv("request_timeout", "HATCHET_REQUEST_TIMEOUT")
}
Finally, document the new environment variable in frontend/docs/pages/self-hosting/configuration-options.mdx and any other relevant documentation.
| Variable | Description | Default Value |
| ------------------------- | ---------------------------- | ------------- |
| `HATCHET_REQUEST_TIMEOUT` | Duration of request timeouts | `5s` |