You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
748 B

3 years ago
3 years ago
3 years ago
3 years ago
  1. package Variables
  2. import (
  3. "github.com/gorilla/sessions"
  4. )
  5. const (
  6. ProjectRoot string = "/path/to/project/root"
  7. DbHost string = "localhost"
  8. DbPort int = 5432
  9. DbName string = "db"
  10. DbUser string = "postgres"
  11. DbPass string = ""
  12. DbOpts string = "sslmode=disable"
  13. WebserverHost string = ":8080"
  14. AdminUsername string = "tovi"
  15. // Generate password with bcrypt.GenerateFromPassword(pwd, bcrypt.MinCost)
  16. AdminPassword string = "$2a$04$Q.FgFAfUfqezReI3JyStD.VP8KdjB6UXc8s.PgTgflLG/2yFq.4Hi"
  17. )
  18. var (
  19. DefaultSidebarLinks = map[string]string{
  20. "Email": "mailto:email@example.com",
  21. }
  22. CookieKey = []byte("super-secret-key")
  23. CookieStore = sessions.NewCookieStore(CookieKey)
  24. CookieName string = "someones-blog-auth"
  25. )