summaryrefslogtreecommitdiff
path: root/config.go
diff options
context:
space:
mode:
Diffstat (limited to 'config.go')
-rw-r--r--config.go9
1 files changed, 9 insertions, 0 deletions
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,
}
}