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