mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
39 lines
1.0 KiB
Go
39 lines
1.0 KiB
Go
package configuration
|
|
|
|
import (
|
|
"errors"
|
|
)
|
|
|
|
// DefaultEnvPrefix is the default environment prefix.
|
|
const DefaultEnvPrefix = "AUTHELIA_"
|
|
|
|
// DefaultEnvDelimiter is the default environment delimiter.
|
|
const DefaultEnvDelimiter = "_"
|
|
|
|
const (
|
|
constSecretSuffix = "_FILE"
|
|
|
|
constDelimiter = "."
|
|
|
|
constWindows = "windows"
|
|
)
|
|
|
|
var (
|
|
errNoValidator = errors.New("no validator provided")
|
|
errNoSources = errors.New("no sources provided")
|
|
|
|
errDecodeNonPtrMustHaveValue = errors.New("must have a non-empty value")
|
|
)
|
|
|
|
const (
|
|
errFmtSecretAlreadyDefined = "secrets: error loading secret into key '%s': it's already defined in other " +
|
|
"configuration sources"
|
|
errFmtSecretIOIssue = "secrets: error loading secret path %s into key '%s': %v"
|
|
errFmtGenerateConfiguration = "error occurred generating configuration: %+v"
|
|
|
|
errFmtDecodeHookCouldNotParse = "could not decode '%s' to a %s: %w"
|
|
errFmtDecodeHookCouldNotParseEmptyValue = "could not decode an empty value to a %s: %w"
|
|
)
|
|
|
|
var secretSuffixes = []string{"key", "secret", "password", "token"}
|