configuration

package
v0.0.0-...-bc6238b Latest Latest
Warning

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

Go to latest
Published: May 4, 2026 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Config = Configuration{}

Functions

func Init

func Init()

Types

type Configuration

type Configuration struct {
	OpenVPNDir     string `json:"openvpn_dir"`
	OpenVPNNetwork string `json:"openvpn_network"`
	OpenVPNNetmask string `json:"openvpn_netmask"`
	OpenVPNUDPPort string `json:"openvpn_udp_port"`

	OpenVPNStatusDir string `json:"openvpn_status_dir"` // Deprecated: it can be removed in the future
	OpenVPNCCDDir    string `json:"openvpn_ccd_dir"`    // Deprecated: it can be removed in the future
	OpenVPNProxyDir  string `json:"openvpn_proxy_dir"`
	OpenVPNPKIDir    string `json:"openvpn_pki_dir"`
	OpenVPNMGMTSock  string `json:"openvpn_mgmt_sock"`

	ListenAddress []string `json:"listen_address"`

	AdminUsername     string   `json:"admin_username"`
	AdminPassword     string   `json:"admin_password"`
	SecretJWT         string   `json:"secret_jwt"`
	SensitiveList     []string `json:"sensitive_list"`
	RegistrationToken string   `json:"registration_token"`

	CredentialsDir string `json:"credentials_dir"` // Deprecated: it can be removed in the future
	DataDir        string `json:"data_dir"`
	Issuer2FA      string `json:"issuer_2fa"`
	SecretsDir     string `json:"secrets_dir"` // Deprecated: it can be removed in the future

	PromtailAddress string `json:"promtail_address"`
	PromtailPort    string `json:"promtail_port"`
	PrometheusPath  string `json:"prometheus_path"`
	WebSSHPath      string `json:"webssh_path"`
	GrafanaPath     string `json:"grafana_path"`

	EasyRSAPath string `json:"easy_rsa_path"`

	ProxyProtocol string `json:"proxy_protocol"`
	ProxyHost     string `json:"proxy_host"`
	ProxyPort     string `json:"proxy_port"`
	LoginEndpoint string `json:"login_endpoint"`

	FQDN string `json:"fqdn"`

	CacheTTL string `json:"cache_ttl"`

	ValidSubscription bool `json:"valid_subscription"`

	ReportDbUri string `json:"report_db_uri"`

	GeoIPDbDir     string `json:"geoip_db_dir"`
	MaxmindLicense string `json:"maxmind_license"`

	GrafanaPostgresPassword string `json:"grafana_postgres_password"`

	RetentionDays string `json:"retention_days"`

	EncryptionKey string `json:"encryption_key"`

	PlatformInfo models.PlatformInfo `json:"platform_info"`

	// Prometheus basi authenticatin to access target list
	PrometheusAuthUsername string `json:"prometheus_auth_username"`
	PrometheusAuthPassword string `json:"prometheus_auth_password"`
}

Jump to

Keyboard shortcuts

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