2026-09-26 18:08:36 +00:00
|
|
|
package config
|
|
|
|
|
|
|
|
|
|
import renderformat "gitea.maximumdirect.net/eric/scriptorium/internal/format"
|
|
|
|
|
|
|
|
|
|
const (
|
|
|
|
|
DefaultConfigPath = "/etc/scriptorium/config.yml"
|
|
|
|
|
DefaultConfigPathLocal = "/usr/local/etc/scriptorium/config.yml"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
var defaultConfigSearchPaths = []string{
|
|
|
|
|
DefaultConfigPathLocal,
|
|
|
|
|
DefaultConfigPath,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// AppSettings holds the validated application values used by executable adapters.
|
|
|
|
|
type AppSettings struct {
|
2026-10-04 11:26:40 +00:00
|
|
|
PromptKitSources []SourceSelection
|
2026-09-26 18:08:36 +00:00
|
|
|
SchemaDir string
|
|
|
|
|
ServerAddr string
|
|
|
|
|
ArtifactRoot string
|
|
|
|
|
MaxRequestBytes int64
|
|
|
|
|
MaxArtifactBytes int64
|
|
|
|
|
MaxResponseBytes int64
|
|
|
|
|
DefaultRenderFormat renderformat.PreparedRunOutputFormat
|
|
|
|
|
TransientRetries *int
|
|
|
|
|
}
|