From 276a118c23551efcf3a9f57c2ac1493cad5c2b3d Mon Sep 17 00:00:00 2001 From: Drew Bowering <43180086+drewbowering@users.noreply.github.com> Date: Tue, 11 Sep 2018 10:55:52 -0600 Subject: [PATCH] Fix: Let's Encrypt configuration settings 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 3f3393f66c931..882f565411a64 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