config

package
v1.7.24 Latest Latest
Warning

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

Go to latest
Published: May 19, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LoggingEnabled = true

Functions

func Init

func Init(c *Cfg)

func Logf

func Logf(format string, v ...any)

func Logln

func Logln(v ...any)

Types

type Cfg

type Cfg struct {
	JWTSecret string

	DBType           string
	PostgresHost     string
	PostgresPort     string
	PostgresDatabase string
	PostgresUsername string
	PostgresPassword string
	PostgresSSLMode  string
	SQLitePath       string

	ClickhouseServer   string
	ClickhouseDatabase string
	ClickhouseUsername string
	ClickhousePassword string
	ClickhouseTLS      string

	StorageType string
	StoragePath string
	S3Bucket    string
	S3Region    string
	S3AccessKey string
	S3SecretKey string
	S3Endpoint  string

	SQLiteRetentionDays             string
	SessionRecordingRetentionDays   string
	SessionRecordingUploadWorkers   string
	SessionRecordingUploadQueueSize string

	SMTPEnabled  string
	SMTPHost     string
	SMTPPort     string
	SMTPUsername string
	SMTPPassword string
	SMTPFrom     string

	AppBaseURL            string
	CloudMode             string
	MonitoringTracewayURL string
	APIOnly               string
	Ports                 string
	TurnstileSecretKey    string

	GoogleClientID     string
	GoogleClientSecret string
	GitHubClientID     string
	GitHubClientSecret string
	OAuthSessionSecret string

	OIDCClientID        string
	OIDCClientSecret    string
	OIDCDiscoveryURL    string
	OIDCDisplayName     string
	OIDCAutoCreateUsers string
	OIDCOrgClaim        string
	OIDCExtraScopes     string
	OIDCRoleClaim       string
	OIDCRoleMap         string
	OIDCAuthURL         string
	OIDCTokenURL        string
	OIDCUserInfoURL     string

	DisablePasswordLogin string
}
var Config *Cfg

func LoadFromEnv

func LoadFromEnv() *Cfg

Jump to

Keyboard shortcuts

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