Add support for HTTPS

This commit is contained in:
Dmitry Pankov 2024-08-21 23:39:12 +03:00
parent cb1f39b3e5
commit a21bd62350
No known key found for this signature in database
GPG key ID: D958C2967535BA49
4 changed files with 32 additions and 1 deletions

View file

@ -57,6 +57,8 @@ type HTTPConfig struct {
BindAddress string
Username string
Password string
CertFile string
KeyFile string
}
type Configuration struct {
@ -431,6 +433,12 @@ func parseHTTPConfig(section *ini.Section) (RoutineSpawner, error) {
password, _ := parseString(section, "Password")
config.Password = password
certFile, _ := parseString(section, "CertFile")
config.CertFile = certFile
keyFile, _ := parseString(section, "KeyFile")
config.KeyFile = keyFile
return config, nil
}