config

package
v2.7.1 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AuthUrl = asString("daemon.auth.url", "http://localhost:8080")
View Source
var BinariesFolder = asString("daemon.data.binaries", "binaries")
View Source
var CacheFolder = asString("daemon.data.cache", "cache")
View Source
var ClientId = asString("daemon.auth.clientId", "")
View Source
var ClientSecret = asString("daemon.auth.clientSecret", "")
View Source
var CompanyName = asString("panel.settings.companyName", "PufferPanel")
View Source
var ConsoleBuffer = asInt("daemon.console.buffer", 50)
View Source
var ConsoleForward = asBool("daemon.console.forward", false)
View Source
var CrashLimit = asInt("daemon.data.crashLimit", 3)
View Source
var DaemonEnabled = asBool("daemon.enable", true)

Daemon options

View Source
var DatabaseDialect = asString("panel.database.dialect", "sqlite3")
View Source
var DatabaseLoggingEnabled = asBool("panel.database.log", false)
View Source
var DatabaseSessionLength = asInt("panel.database.session", 60)
View Source
var DatabaseUrl = asString("panel.database.url", "")
View Source
var DefaultTheme = asString("panel.settings.defaultTheme", "PufferPanel")
View Source
var EmailDomain = asString("panel.email.domain", "")
View Source
var EmailFrom = asString("panel.email.from", "")
View Source
var EmailHost = asString("panel.email.host", "")
View Source
var EmailKey = asString("panel.email.key", "")
View Source
var EmailPassword = asString("panel.email.password", "")
View Source
var EmailProvider = asString("panel.email.provider", "")
View Source
var EmailTemplateJson = asString("panel.email.templates", "email/emails.json")
View Source
var EmailUsername = asString("panel.email.username", "")
View Source
var LogsFolder = asString("logs", "logs")

Global options

View Source
var MasterUrl = asString("panel.settings.masterUrl", "http://localhost:8080")
View Source
var PanelEnabled = asBool("panel.enable", true)

Panel options

View Source
var RegistrationEnabled = asBool("panel.registrationEnabled", true)
View Source
var SecurityForceOpenat = asBool("security.forceOpenat", false)
View Source
var SecurityForceOpenat2 = asBool("security.forceOpenat2", false)
View Source
var ServersFolder = asString("daemon.data.servers", "servers")
View Source
var SessionKey = asString("panel.sessionKey", "")
View Source
var SftpHost = asString("daemon.sftp.host", "0.0.0.0:5657")
View Source
var SftpKey = asString("daemon.sftp.key", "sftp.key")
View Source
var ThemeSettings = asString("panel.settings.themeSettings", "{}")
View Source
var TokenPrivate = asString("token.private", "private.pem")

Deprecated: Removed in v3

View Source
var TokenPublic = asString("token.public", "public.pem")

Deprecated: Removed in v3

View Source
var WebHost = asString("web.host", "0.0.0.0:8080")
View Source
var WebRoot = asString("panel.web.files", "www")
View Source
var WebSocketFileLimit = asInt64("daemon.data.maxWSDownloadSize", 1024*1024*20)

Functions

func LoadConfigFile

func LoadConfigFile(workDir string) error

Types

type BoolEntry added in v2.6.0

type BoolEntry struct {
	// contains filtered or unexported fields
}

func (BoolEntry) Key added in v2.6.0

func (se BoolEntry) Key() string

func (BoolEntry) Set added in v2.6.0

func (se BoolEntry) Set(value T, save bool) error

func (BoolEntry) Value added in v2.6.0

func (se BoolEntry) Value() bool

type Int64Entry added in v2.6.0

type Int64Entry struct {
	// contains filtered or unexported fields
}

func (Int64Entry) Key added in v2.6.0

func (se Int64Entry) Key() string

func (Int64Entry) Set added in v2.6.0

func (se Int64Entry) Set(value T, save bool) error

func (Int64Entry) Value added in v2.6.0

func (se Int64Entry) Value() int64

type IntEntry added in v2.6.0

type IntEntry struct {
	// contains filtered or unexported fields
}

func (IntEntry) Key added in v2.6.0

func (se IntEntry) Key() string

func (IntEntry) Set added in v2.6.0

func (se IntEntry) Set(value T, save bool) error

func (IntEntry) Value added in v2.6.0

func (se IntEntry) Value() int

type StringEntry added in v2.6.0

type StringEntry struct {
	// contains filtered or unexported fields
}

func (StringEntry) Key added in v2.6.0

func (se StringEntry) Key() string

func (StringEntry) Set added in v2.6.0

func (se StringEntry) Set(value T, save bool) error

func (StringEntry) Value added in v2.6.0

func (se StringEntry) Value() string

type ValueType added in v2.6.0

type ValueType interface {
	int | int64 | bool | string
}

Jump to

Keyboard shortcuts

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