From 8e3e59fdb8dffe23a04f1a2bef308d96a50961a6 Mon Sep 17 00:00:00 2001 From: Drew Bowering <43180086+drewbowering@users.noreply.github.com> Date: Tue, 11 Sep 2018 22:06:44 -0600 Subject: [PATCH] Fix: Let's Encrypt configuration settings (#4911) ENABLE_LETSENCRYPT and LETSENCRYPT_ACCEPTTOS were not being properly loaded from the config file, always resulting in the default settings being in place. --- modules/setting/setting.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/setting/setting.go b/modules/setting/setting.go index 3f3393f66c..882f565411 100644 --- a/modules/setting/setting.go +++ b/modules/setting/setting.go @@ -741,8 +741,8 @@ func NewContext() { } UnixSocketPermission = uint32(UnixSocketPermissionParsed) } - EnableLetsEncrypt := sec.Key("ENABLE_LETSENCRYPT").MustBool(false) - LetsEncryptTOS := sec.Key("LETSENCRYPT_ACCEPTTOS").MustBool(false) + EnableLetsEncrypt = sec.Key("ENABLE_LETSENCRYPT").MustBool(false) + LetsEncryptTOS = sec.Key("LETSENCRYPT_ACCEPTTOS").MustBool(false) if !LetsEncryptTOS && EnableLetsEncrypt { log.Warn("Failed to enable Let's Encrypt due to Let's Encrypt TOS not being accepted") EnableLetsEncrypt = false