From 5ee2c45d4aaeacc371b062040e66ee29ce58494b Mon Sep 17 00:00:00 2001 From: Yuce Tekol Date: Fri, 25 May 2018 10:41:42 +0300 Subject: [PATCH 1/2] Match TLSConfig to the docs --- server/config.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/config.go b/server/config.go index 2e2feeeb2..85170c5ea 100644 --- a/server/config.go +++ b/server/config.go @@ -31,9 +31,9 @@ const ( // TLSConfig contains TLS configuration type TLSConfig struct { // CertificatePath contains the path to the certificate (.crt or .pem file) - CertificatePath string `toml:"certificate-path"` + CertificatePath string `toml:"certificate"` // CertificateKeyPath contains the path to the certificate key (.key file) - CertificateKeyPath string `toml:"certificate-key-path"` + CertificateKeyPath string `toml:"key"` // SkipVerify disables verification for self-signed certificates SkipVerify bool `toml:"skip-verify"` } From ad29269a7fe9fc2a83aa8f4def94328e0f3f997d Mon Sep 17 00:00:00 2001 From: Yuce Tekol Date: Fri, 25 May 2018 16:03:53 +0300 Subject: [PATCH 2/2] Add tls tag --- server/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/config.go b/server/config.go index 85170c5ea..3fb2dd877 100644 --- a/server/config.go +++ b/server/config.go @@ -58,7 +58,7 @@ type Config struct { Verbose bool `toml:"verbose"` // TLS - TLS TLSConfig + TLS TLSConfig `toml:"tls"` Cluster struct { // Disabled controls whether clustering functionality is enabled.