diff --git a/caddy/letsencrypt/letsencrypt.go b/caddy/letsencrypt/letsencrypt.go
index 63eeaf7f..f6b55a5f 100644
--- a/caddy/letsencrypt/letsencrypt.go
+++ b/caddy/letsencrypt/letsencrypt.go
@@ -124,6 +124,19 @@ func Activate(configs []server.Config) ([]server.Config, error) {
errMsg += "[" + domain + "] failed to get certificate: " + obtainErr.Error() + "\n"
}
+ // Save the certs we did obtain, though, before leaving
+ if err := saveCertsAndKeys(certificates); err == nil {
+ if len(certificates) > 0 {
+ var certList []string
+ for _, cert := range certificates {
+ certList = append(certList, cert.Domain)
+ }
+ errMsg += "Saved certificates for: " + strings.Join(certList, ", ") + "\n"
+ }
+ } else {
+ errMsg += "Unable to save obtained certificates: " + err.Error() + "\n"
+ }
+
return configs, errors.New(errMsg)
}
diff --git a/caddy/setup/browse.go b/caddy/setup/browse.go
index 4e5291a5..40d5746e 100644
--- a/caddy/setup/browse.go
+++ b/caddy/setup/browse.go
@@ -86,171 +86,282 @@ const defaultTemplate = `
{{.Name}}
+
-
- {{if .CanGoUp}}
- ⬑
- {{else}}
-
- {{end}}
+
+
+
+
+
-
-
-
- {{if and (eq .Sort "name") (ne .Order "desc")}}
- Name ▲
- {{else if and (eq .Sort "name") (ne .Order "asc")}}
- Name ▼
- {{else}}
- Name
- {{end}}
- |
-
- {{if and (eq .Sort "size") (ne .Order "desc")}}
- Size ▲
- {{else if and (eq .Sort "size") (ne .Order "asc")}}
- Size ▼
- {{else}}
- Size
- {{end}}
- |
-
- {{if and (eq .Sort "time") (ne .Order "desc")}}
- Modified ▲
- {{else if and (eq .Sort "time") (ne .Order "asc")}}
- Modified ▼
- {{else}}
- Modified
- {{end}}
- |
-
- {{range .Items}}
-
-
- {{if .IsDir}}📂{{else}}📄{{end}}
- {{.Name}}
- |
- {{.HumanSize}} |
- {{.HumanModTime "01/02/2006 3:04:05 PM -0700"}} |
-
- {{end}}
-
+
+
+
+
+
+ {{if and (eq .Sort "name") (ne .Order "desc")}}
+ Name
+ {{else if and (eq .Sort "name") (ne .Order "asc")}}
+ Name
+ {{else}}
+ Name
+ {{end}}
+ |
+
+ {{if and (eq .Sort "size") (ne .Order "desc")}}
+ Size
+ {{else if and (eq .Sort "size") (ne .Order "asc")}}
+ Size
+ {{else}}
+ Size
+ {{end}}
+ |
+
+ {{if and (eq .Sort "time") (ne .Order "desc")}}
+ Modified
+ {{else if and (eq .Sort "time") (ne .Order "asc")}}
+ Modified
+ {{else}}
+ Modified
+ {{end}}
+ |
+
+ {{range .Items}}
+
+
+
+ {{if .IsDir}}
+
+ {{else}}
+
+ {{end}}
+ {{.Name}}
+
+ |
+ {{.HumanSize}} |
+ {{.HumanModTime "01/02/2006 03:04:05 PM"}} |
+
+ {{end}}
+
+
+