Skip to content

Commit 8e3e59f

Browse files
drewboweringtechknowlogick
authored andcommitted
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.
1 parent b5b39a5 commit 8e3e59f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/setting/setting.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -741,8 +741,8 @@ func NewContext() {
741741
}
742742
UnixSocketPermission = uint32(UnixSocketPermissionParsed)
743743
}
744-
EnableLetsEncrypt := sec.Key("ENABLE_LETSENCRYPT").MustBool(false)
745-
LetsEncryptTOS := sec.Key("LETSENCRYPT_ACCEPTTOS").MustBool(false)
744+
EnableLetsEncrypt = sec.Key("ENABLE_LETSENCRYPT").MustBool(false)
745+
LetsEncryptTOS = sec.Key("LETSENCRYPT_ACCEPTTOS").MustBool(false)
746746
if !LetsEncryptTOS && EnableLetsEncrypt {
747747
log.Warn("Failed to enable Let's Encrypt due to Let's Encrypt TOS not being accepted")
748748
EnableLetsEncrypt = false

0 commit comments

Comments
 (0)