config

package
v0.0.0-...-0a98aba Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 26, 2025 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigFilenames

type ConfigFilenames []string

func (*ConfigFilenames) Set

func (f *ConfigFilenames) Set(value string) error

func (*ConfigFilenames) String

func (f *ConfigFilenames) String() string

type Configuration

type Configuration struct {
	Database dbutil.Config `yaml:"database"`

	DevMode bool `yaml:"dev_mode"`

	Domain              string        `yaml:"domain"`
	SendgridAPIKey      string        `yaml:"sendgrid_api_key"`
	HealthcheckURL      string        `yaml:"healthcheck_url"`
	HostedByHTML        template.HTML `yaml:"hosted_by_html"`
	RegistrationEnabled bool          `yaml:"registration_enabled"`

	JWTSecretKeyFile string `yaml:"jwt_secret_key_file"`
	JWTSecretKey     string `yaml:"jwt_secret_key"`

	Recaptcha RecaptchaConfig `yaml:"recaptcha"`

	Logging zeroconfig.Config `yaml:"logging"`
	// contains filtered or unexported fields
}

func (*Configuration) ReadSecretKey

func (c *Configuration) ReadSecretKey() []byte

type RecaptchaConfig

type RecaptchaConfig struct {
	SiteKey   string `yaml:"site_key"`
	SecretKey string `yaml:"secret_key"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL