diff --git a/main.go b/main.go index 9172626..6ee659d 100644 --- a/main.go +++ b/main.go @@ -6,6 +6,7 @@ import ( "log" "math/rand" "net/http" + "os" "time" ) @@ -14,7 +15,7 @@ const MAX = 12 var addr = flag.String("addr", ":8000", "address I'll listen on.") var static_files = flag.String("static", "./static", "location of static files") -var store = sessions.NewCookieStore([]byte("hello world")) +var store = sessions.NewCookieStore([]byte(os.Getenv("MMG_SECRET_KEY"))) func main() { rand.Seed(time.Now().UTC().UnixNano())