added gravatar

This commit is contained in:
Torkel Ödegaard
2014-09-22 10:46:56 +02:00
parent ed8f5dbd22
commit b0b77d667c
15 changed files with 212 additions and 23 deletions
+25 -2
View File
@@ -1,11 +1,34 @@
package configuration
type Cfg struct {
httpPort string
DashboardSource DashboardSourceCfg
Http HttpCfg
}
type HttpCfg struct {
Port string
GoogleOAuth GoogleOAuthCfg
}
type GoogleOAuthCfg struct {
Enabled bool
ClientId string
ClientSecret string
}
type DashboardSourceCfg struct {
sourceType string
path string
}
func NewCfg(port string) *Cfg {
return &Cfg{
Http: HttpCfg{
Port: port,
GoogleOAuth: GoogleOAuthCfg{
Enabled: true,
ClientId: "106011922963-4pvl05e9urtrm8bbqr0vouosj3e8p8kb.apps.googleusercontent.com",
ClientSecret: "K2evIa4QhfbhhAm3SO72t2Zv",
},
},
}
}