mail based rss feed aggregator
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

add configuration.gleam

ollie 7e3e6b4c 22a01b70

+17
+17
src/eater/configuration.gleam
··· 1 + import envoy 2 + import woof 3 + 4 + pub type AppConfig { 5 + AppConfig(allow_signups: Bool) 6 + } 7 + 8 + pub fn from_environment(logger: woof.Logger) -> AppConfig { 9 + woof.log(logger, woof.Info, "Getting ALLOW_SIGNUPS", []) 10 + 11 + let allow_signups = case envoy.get("ALLOW_SIGNUPS") { 12 + Ok("false") | Ok("False") | Ok("FALSE") -> False 13 + Ok(_) -> True 14 + _ -> False 15 + } 16 + AppConfig(allow_signups:) 17 + }