From 030d05d57a7e46c57497bfaab5f3a27a91893b9d Mon Sep 17 00:00:00 2001 From: tjpcc Date: Thu, 7 Sep 2023 12:58:17 -0600 Subject: opt-in AutoAtom support for gemini --- config.go | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'config.go') diff --git a/config.go b/config.go index a758903..4eb6dbc 100644 --- a/config.go +++ b/config.go @@ -24,6 +24,8 @@ type config struct { privilegedUsers []string fingerResponses map[string]string + + geminiAutoAtom bool } func configure() config { @@ -38,6 +40,11 @@ func configure() config { fingers[strings.ToLower(key[7:])] = val } + autoatom, err := strconv.ParseBool(os.Getenv("GEMINI_AUTOATOM")) + if err != nil { + autoatom = false + } + return config{ hostname: os.Getenv("HOST_NAME"), geminiRoot: os.Getenv("GEMINI_ROOT"), @@ -48,6 +55,8 @@ func configure() config { privilegedUsers: privileged, fingerResponses: fingers, + + geminiAutoAtom: autoatom, } } -- cgit v1.2.3