mirror of
https://github.com/grafana/grafana.git
synced 2025-02-20 11:48:34 -06:00
35 lines
588 B
Go
35 lines
588 B
Go
package configuration
|
|
|
|
type Cfg struct {
|
|
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",
|
|
},
|
|
},
|
|
}
|
|
}
|