package Variables
|
|
|
|
import (
|
|
"github.com/gorilla/sessions"
|
|
)
|
|
|
|
const (
|
|
ProjectRoot string = "/path/to/project/root"
|
|
|
|
DbHost string = "localhost"
|
|
DbPort int = 5432
|
|
DbName string = "db"
|
|
DbUser string = "postgres"
|
|
DbPass string = ""
|
|
DbOpts string = "sslmode=disable"
|
|
|
|
WebserverHost string = ":8080"
|
|
|
|
AdminUsername string = "tovi"
|
|
// Generate password with bcrypt.GenerateFromPassword(pwd, bcrypt.MinCost)
|
|
AdminPassword string = "$2a$04$Q.FgFAfUfqezReI3JyStD.VP8KdjB6UXc8s.PgTgflLG/2yFq.4Hi"
|
|
)
|
|
|
|
var (
|
|
DefaultSidebarLinks = map[string]string{
|
|
"Email": "mailto:email@example.com",
|
|
}
|
|
|
|
CookieKey = []byte("super-secret-key")
|
|
CookieStore = sessions.NewCookieStore(CookieKey)
|
|
CookieName string = "someones-blog-auth"
|
|
)
|