summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDrew Bowering <43180086+drewbowering@users.noreply.github.com>2018-09-11 22:06:44 -0600
committertechknowlogick <techknowlogick@users.noreply.github.com>2018-09-12 00:06:44 -0400
commit8e3e59fdb8dffe23a04f1a2bef308d96a50961a6 (patch)
tree8d846efd32ff2627047c29b8f3b01574a361e088
parentb5b39a56ad9efc09d7e830f764a40ba39a76066c (diff)
downloadgitea-8e3e59fdb8dffe23a04f1a2bef308d96a50961a6.tar.gz
gitea-8e3e59fdb8dffe23a04f1a2bef308d96a50961a6.zip
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.
-rw-r--r--modules/setting/setting.go4
1 files 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