config

package
v0.0.185 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: AGPL-3.0 Imports: 9 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 {
	Debug                    bool
	Port                     int
	PasswordSalt             string
	OTLPEndpoint             string
	InitialAdminUserPassword string
	CORSHosts                []string
	TrustedProxies           []string
	HIBPAPIKey               string
	ServerName               string
	Supernode                bool
	Masquerade               bool
	WireguardTapAddress      string
	NodeIP                   string

	SessionSecret            []byte
	VTUNStartingAddress      string
	WireguardStartingAddress string
	WireguardStartingPort    uint16
	PostgresDSN              string

	MetricsNodeExporterHost string
	MetricsPort             int
	Latitude                string
	Longitude               string
	Gridsquare              string
	DisableVTun             bool
	// contains filtered or unexported fields
}

Config stores the application configuration.

func GetConfig

func GetConfig(cmd *cobra.Command) *Config

GetConfig obtains the current configuration

Jump to

Keyboard shortcuts

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