package
Version:
v1.22.0-alpha5
Opens a new window with list of versions in this module.
Published: Oct 6, 2023
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type ACC struct {
ServerPath string `yaml:"server_path"`
ServerExe string `yaml:"server_exe"`
}
type Auth struct {
PublicKeyPath string `yaml:"public_key_path"`
PrivateKeyPath string `yaml:"private_key_path"`
AdminPassword string `yaml:"admin_password"`
ModeratorPassword string `yaml:"moderator_password"`
ReadOnlyPassword string `yaml:"read_only_password"`
}
type CORS struct {
Origins string `yaml:"origins"`
Loglevel string `yaml:"loglevel"`
}
type Config struct {
Dev bool `yaml:"dev"`
SkipWine bool `yaml:"skip_wine"`
Loglevel string `yaml:"loglevel"`
ConfigPath string `yaml:"config_path"`
Webserver Webserver `yaml:"webserver"`
CORS CORS `yaml:"cors"`
Auth Auth `yaml:"auth"`
ACC ACC `yaml:"acc"`
}
Load loads the application config from config.yml.
type Webserver struct {
Host string `yaml:"host"`
TLS bool `yaml:"tls"`
Cert string `yaml:"cert"`
PrivateKey string `yaml:"private_key"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.