From eabb7d99170f38de305373995e0143936cd57fbe Mon Sep 17 00:00:00 2001 From: video-prize-ranch Date: Mon, 12 Jan 2026 01:52:26 +0100 Subject: [PATCH] Allow using 1 or true for all boolean config options (#242) Reviewed-on: https://codeberg.org/rimgo/rimgo/pulls/242 Reviewed-by: orangix Co-authored-by: video-prize-ranch Co-committed-by: video-prize-ranch --- utils/config.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/config.go b/utils/config.go index bb472c4..1f08640 100644 --- a/utils/config.go +++ b/utils/config.go @@ -51,8 +51,8 @@ func LoadConfig() { Addr: addr, ImgurId: imgurId, ProtocolDetection: os.Getenv("PROTOCOL_DETECTION") == "true" || os.Getenv("PROTOCOL_DETECTION") == "1", - Secure: os.Getenv("SECURE") == "true", - FiberPrefork: os.Getenv("FIBER_PREFORK") == "true", + Secure: os.Getenv("SECURE") == "true" || os.Getenv("SECURE") == "1", + FiberPrefork: os.Getenv("FIBER_PREFORK") == "true" || os.Getenv("FIBER_PREFORK") == "1", ForceWebp: os.Getenv("FORCE_WEBP") == "true" || os.Getenv("FORCE_WEBP") == "1", Privacy: map[string]interface{}{ "set": os.Getenv("PRIVACY_NOT_COLLECTED") != "",