config

package
v0.0.0-...-8f6ad63 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2024 License: Apache-2.0 Imports: 1 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 {
	ServicePort        int    `envconfig:"SERVICE_PORT" default:"62050"`
	XrayApiPort        int    `envconfig:"XRAY_API_PORT" default:"62051"`
	XrayExecutablePath string `envconfig:"XRAY_EXECUTABLE_PATH" default:"/usr/local/bin/xray"`
	XrayAssetsPath     string `envconfig:"XRAY_ASSETS_PATH" default:"/usr/local/share/xray"`
	SslCertFile        string `envconfig:"SSL_CERT_FILE" default:"/var/lib/marzban-node/ssl_cert.pem"`
	SslKeyFile         string `envconfig:"SSL_KEY_FILE" default:"/var/lib/marzban-node/ssl_key.pem"`
	SslClientCertFile  string `envconfig:"SSL_CLIENT_CERT_FILE" default:""`
	Debug              bool   `envconfig:"DEBUG" default:"false"`
	ServiceProtocol    string `envconfig:"SERVICE_PROTOCOL" default:"rpyc"`
}

func LoadConfig

func LoadConfig() (*Config, error)

Jump to

Keyboard shortcuts

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