Browse Source

Update Variables.go.sample with "password" hash and comments

pull/2/head
Tovi Jaeschke-Rogers 3 years ago
parent
commit
30d0f97473
1 changed files with 19 additions and 1 deletions
  1. +19
    -1
      Variables/Variables.go.sample

+ 19
- 1
Variables/Variables.go.sample View File

@ -1,14 +1,32 @@
package Variables package Variables
import (
"github.com/gorilla/sessions"
)
const ( const (
ProjectRoot string = "/path/to/project/root" ProjectRoot string = "/path/to/project/root"
DbHost string = "localhost" DbHost string = "localhost"
DbPort int = 5432 DbPort int = 5432
DbName string = "personal-website"
DbName string = "db"
DbUser string = "postgres" DbUser string = "postgres"
DbPass string = "" DbPass string = ""
DbOpts string = "sslmode=disable" DbOpts string = "sslmode=disable"
WebserverHost string = ":8080" 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"
) )

Loading…
Cancel
Save