Added TLS support

This commit is contained in:
Thomas Miceli
2023-03-15 10:37:17 +01:00
parent 2c40060a60
commit e95a1b6840
3 changed files with 33 additions and 12 deletions

View File

@ -19,10 +19,13 @@ type config struct {
LogLevel string `yaml:"log-level"`
HTTP struct {
Host string `yaml:"host"`
Port string `yaml:"port"`
Domain string `yaml:"domain"`
Git bool `yaml:"git-enabled"`
Host string `yaml:"host"`
Port string `yaml:"port"`
Domain string `yaml:"domain"`
Git bool `yaml:"git-enabled"`
TLSEnabled bool `yaml:"tls-enabled"`
CertFile string `yaml:"cert-file"`
KeyFile string `yaml:"key-file"`
} `yaml:"http"`
SSH struct {
@ -51,6 +54,8 @@ func configWithDefaults() (*config, error) {
c.HTTP.Domain = "localhost"
c.HTTP.Git = true
c.HTTP.TLSEnabled = false
c.SSH.Enabled = true
c.SSH.Host = "0.0.0.0"
c.SSH.Port = "2222"