Use certmagic, simplify config, set HTTP timeouts and a modern TLSConfig
This commit is contained in:
parent
c5a9a5b1c1
commit
6c3a5777c4
171 changed files with 30701 additions and 4912 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue