mirror of
https://github.com/caddyserver/caddy.git
synced 2025-02-01 18:47:47 +08:00
Don't forget to set port to "https" and indicate TLS enabled
This commit is contained in:
parent
9727603250
commit
df194d567f
|
@ -127,6 +127,8 @@ func initiateLetsEncrypt(configs []server.Config) error {
|
|||
for _, cfg := range serverConfigs {
|
||||
cfg.TLS.Certificate = filepath.Join(app.DataFolder(), "letsencrypt", "sites", cfg.Host, cfg.Host+".crt")
|
||||
cfg.TLS.Key = filepath.Join(app.DataFolder(), "letsencrypt", "sites", cfg.Host, cfg.Host+".key")
|
||||
cfg.TLS.Enabled = true
|
||||
cfg.Port = "https"
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user