make tls optional

This commit is contained in:
ston1th 2021-03-07 13:20:32 +01:00
commit c9996712de
4 changed files with 46 additions and 40 deletions

View file

@ -144,7 +144,7 @@ type Config struct {
type Server struct {
Listen string `yaml:"listen"`
TLS TLS `yaml:"tls"`
TLS *TLS `yaml:"tls"`
BasicAuth []BasicAuth `yaml:"basicAuth"`
}