mirror of
https://github.com/caddyserver/caddy.git
synced 2025-01-24 03:05:49 +03:00
Don't forget to set port to "https" and indicate TLS enabled
This commit is contained in:
parent
9727603250
commit
df194d567f
1 changed files with 2 additions and 0 deletions
|
@ -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 a new issue