config

package
v1.0.65 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	RedisHost     string
	RedisPassword string
	PostgresDSN   string

	Secret []byte

	PasswordSalt             string
	ListenAddr               string
	DMRPort                  int
	MetricsPort              int
	OpenBridgePort           int
	HTTPPort                 int
	CORSHosts                []string
	TrustedProxies           []string
	HIBPAPIKey               string
	OTLPEndpoint             string
	InitialAdminUserPassword string
	Debug                    bool
	NetworkName              string
	AllowScraping            bool
	CustomRobotsTxt          string
	FeatureFlags             []string
	SMTPHost                 string
	SMTPPort                 int
	SMTPImplicitTLS          bool
	SMTPUsername             string
	SMTPPassword             string
	SMTPFrom                 string
	SMTPAuthMethod           string
	AdminEmail               string
	EnableEmail              bool
	CanonicalHost            string
	// contains filtered or unexported fields
}

Config stores the application configuration.

func GetConfig

func GetConfig() *Config

GetConfig obtains the current configuration On the first call, it will load the configuration from the environment variables.

Jump to

Keyboard shortcuts

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