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(password, bcrypt.MinCost)
|
|
AdminPassword string = "$2a$04$Q.FgFAfUfqezReI3JyStD.VP8KdjB6UXc8s.PgTgflLG/2yFq.4Hi"
|
|
)
|
|
|
|
var (
|
|
DefaultSidebarLinks = map[string]string{
|
|
"Email": "mailto:tovi@strng.io",
|
|
}
|
|
|
|
CookieKey = []byte("super-secret-key")
|
|
CookieStore = sessions.NewCookieStore(CookieKey)
|
|
CookieName string = "someones-blog-auth"
|
|
)
|