Use certmagic, simplify config, set HTTP timeouts and a modern TLSConfig

This commit is contained in:
Ken-Håvard Lieng 2018-12-16 12:19:16 +01:00
parent c5a9a5b1c1
commit 6c3a5777c4
171 changed files with 30701 additions and 4912 deletions

View file

@ -31,12 +31,11 @@ type Defaults struct {
}
type HTTPS struct {
Enabled bool
Port string
Redirect bool
Cert string
Key string
HSTS *HSTS
Enabled bool
Port string
Cert string
Key string
HSTS *HSTS
}
type HSTS struct {
@ -49,8 +48,6 @@ type HSTS struct {
type LetsEncrypt struct {
Domain string
Email string
Port string
Proxy bool
}
func LoadConfig() (*Config, chan *Config) {