Просмотр исходного кода

docs(config): added missing smtp config section, fixes #6155

Torkel Ödegaard 9 лет назад
Родитель
Сommit
0ab2113fab
2 измененных файлов с 37 добавлено и 0 удалено
  1. 27 0
      docs/sources/installation/configuration.md
  2. 10 0
      pkg/core/core.go

+ 27 - 0
docs/sources/installation/configuration.md

@@ -492,6 +492,33 @@ Grafana backend index those json dashboards which will make them appear in regul
 ### path
 The full path to a directory containing your json dashboards.
 
+## [smtp]
+Email server settings.
+
+### enabled
+defaults to false
+
+### host
+defaults to localhost:25
+
+### user
+In case of SMTP auth, defaults to `empty`
+
+### password
+In case of SMTP auth, defaults to `empty`
+
+### cert_file
+File path to a cert file, defaults to `empty`
+
+### key_file
+File path to a key file, defaults to `empty`
+
+### skip_verify
+Verify SSL for smtp server? defaults to `false`
+
+### from_address
+Address used when sending out emails, defaults to `admin@grafana.localhost`
+
 ## [log]
 
 ### mode

+ 10 - 0
pkg/core/core.go

@@ -0,0 +1,10 @@
+package core
+
+import "context"
+
+type GrafanaServer interface {
+	context.Context
+}
+
+type GrafanaServerImpl struct {
+}