mirror of
https://github.com/filebrowser/filebrowser.git
synced 2025-05-08 11:22:10 +00:00

License: MIT Signed-off-by: Henrique Dias <hacdias@gmail.com> Former-commit-id: 856c18bc9cf98a27b6cbea923b231e0aaf279190 [formerly 201c1a0294947930a7d0706af72ce719a8cc3b98] [formerly 0253e57e2994023e798f6fb0ae76f9c21d18fd69 [formerly 33a58c999a8e2ae49e52117451e99b57b2cde7b9]] Former-commit-id: e7d88b22207125c29ea85a5a539653a54584999c [formerly 77cb1e0172cdf7195cc25d557e5028a9250d655c] Former-commit-id: 64288f5a475a82d5f88c91347a09aea67ebb169d
26 lines
816 B
Go
26 lines
816 B
Go
package settings
|
|
|
|
import "github.com/filebrowser/filebrowser/v2/rules"
|
|
|
|
// AuthMethod describes an authentication method.
|
|
type AuthMethod string
|
|
|
|
// Settings contain the main settings of the application.
|
|
type Settings struct {
|
|
Key []byte `json:"key"`
|
|
BaseURL string `json:"baseURL"`
|
|
Root string `json:"root"`
|
|
Signup bool `json:"signup"`
|
|
Defaults UserDefaults `json:"defaults"`
|
|
AuthMethod AuthMethod `json:"authMethod"`
|
|
Branding Branding `json:"branding"`
|
|
Commands map[string][]string `json:"commands"`
|
|
Shell []string `json:"shell"`
|
|
Rules []rules.Rule `json:"rules"`
|
|
}
|
|
|
|
// GetRules implements rules.Provider.
|
|
func (s *Settings) GetRules() []rules.Rule {
|
|
return s.Rules
|
|
}
|