grab secret key from env

This commit is contained in:
Stephen McQuay 2013-05-09 00:53:17 -07:00
parent a1286417ea
commit 984dba9242
1 changed files with 2 additions and 1 deletions

View File

@ -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())