1
0
Fork 0
mirror of https://github.com/alice-lg/birdwatcher.git synced 2025-03-23 00:00:07 +01:00
birdwatcher/endpoints/config.go
Benedikt Rudolph 49b3be6c22 make TLS configurable via config file.
Add new configuration file options: enable_tls, crt and key.
Add customized logger for unified log outputs.
2018-07-18 10:42:58 +02:00

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"`
}