Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Cfg = Config{ SiteName: "Anniv", Description: "", Listen: ":8080", Enforce2FA: false, TrustedProxies: []string{"127.0.0.1/32"}, RepoURL: "https://github.com/ProjectAnni/repo.git", RequireInvite: false, InviteCode: uuid.NewV4().String(), AnnilToken: []AnnilToken{ { Enabled: false, Name: "Default Library", URL: "", Credential: "", AllowShare: false, }, }, Debug: DebugConfig{ Enabled: false, MemProfilePath: "mem.prof", }, }
Functions ¶
Types ¶
type AnnilToken ¶
type Config ¶
type Config struct { SiteName string `yaml:"site_name"` Description string `yaml:"description"` Listen string `yaml:"listen"` Enforce2FA bool `yaml:"enforce_2fa"` Headers map[string]string `yaml:"headers"` TrustedProxies []string `yaml:"trusted_proxies"` RepoURL string `yaml:"repo_url"` RequireInvite bool `yaml:"require_invite"` InviteCode string `yaml:"invite_code"` AnnilToken []AnnilToken `yaml:"annil_token"` Debug DebugConfig `yaml:"debug"` }
type DebugConfig ¶
Click to show internal directories.
Click to hide internal directories.