changeset 338:dabe189369ad

Configuration: Port numbers are integers. Mail port defaults to 465 (SSL).
author Sascha L. Teichmann <teichmann@intevation.de>
date Fri, 03 Aug 2018 22:20:06 +0200
parents e48da6f427c8
children 33b59c848771
files cmd/gemma/gemma.toml.example config/config.go
diffstat 2 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/cmd/gemma/gemma.toml.example	Fri Aug 03 22:10:59 2018 +0200
+++ b/cmd/gemma/gemma.toml.example	Fri Aug 03 22:20:06 2018 +0200
@@ -7,7 +7,7 @@
 
 # Host and port to listen on:
 #host = "localhost"
-#port = "8000"
+#port = 8000
 
 # Where to find the data of the web client (SPA) to serve:
 web = "./web"
@@ -21,7 +21,7 @@
 # DB connection configuration:
 #dbhost = "localhost"
 #dbname = "gemma"
-#dbport = "5432"
+#dbport = 5432
 #dbssl = "prefer"
 
 # Database account to use for service tasks
@@ -35,7 +35,7 @@
 # SMTP connection configuration:
 #mail-host = "localhost"
 #mail-password = "SECRET"
-#mail-port = "464"
+#mail-port = 465
 #mail-user = "gemma"
 
 # Client data to use:
--- a/config/config.go	Fri Aug 03 22:10:59 2018 +0200
+++ b/config/config.go	Fri Aug 03 22:20:06 2018 +0200
@@ -61,7 +61,7 @@
 	fl.String("service-password", "", "password of user to do service tasks")
 
 	fl.String("mail-host", "localhost", "server to send mail with")
-	fl.Uint("mail-port", 464, "port of server to send mail with")
+	fl.Uint("mail-port", 465, "port of server to send mail with")
 	fl.String("mail-user", "gemma", "user to send mail with")
 	fl.String("mail-password", "", "password of user to send mail with")
 	fl.String("mail-from", "noreplay@localhost", "from line of mails")