mirror of
https://github.com/alice-lg/birdwatcher.git
synced 2025-03-23 00:00:07 +01:00

Add new configuration file options: enable_tls, crt and key. Add customized logger for unified log outputs.
11 lines
280 B
Go
11 lines
280 B
Go
package endpoints
|
|
|
|
// Endpoints / Server configuration
|
|
type ServerConfig struct {
|
|
AllowFrom []string `toml:"allow_from"`
|
|
ModulesEnabled []string `toml:"modules_enabled"`
|
|
|
|
EnableTLS bool `toml:"enable_tls"`
|
|
Crt string `toml:"crt"`
|
|
Key string `toml:"key"`
|
|
}
|