added database connection and ability to retrieve "Anonymous Honyak" user
This commit is contained in:
@@ -46,6 +46,10 @@ type AmConfig struct {
|
||||
Site struct {
|
||||
Title string `yaml:"title"`
|
||||
} `yaml:"site"`
|
||||
Database struct {
|
||||
Driver string `yaml:"driver"`
|
||||
Dsn string `yaml:"dsn"`
|
||||
} `yaml:"database"`
|
||||
Rendering struct {
|
||||
TemplateDir string `yaml:"templatedir"`
|
||||
CookieKey string `yaml:"cookiekey"`
|
||||
|
||||
@@ -8,6 +8,9 @@
|
||||
#
|
||||
site:
|
||||
title: "Amsterdam Web Communities System"
|
||||
database:
|
||||
driver: "mysql"
|
||||
dsn: "amsdb:x00yes2k@tcp(localhost)/amsterdam"
|
||||
rendering:
|
||||
templatedir: custom_templates
|
||||
cookiekey: ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
|
||||
|
||||
Reference in New Issue
Block a user