mirror of
https://github.com/astaxie/beego.git
synced 2024-11-25 19:00:55 +00:00
set admin default to false. default the admin console is shut down.
This commit is contained in:
parent
b346617dc1
commit
bc0d4ac7cb
34
config.go
34
config.go
@ -13,23 +13,23 @@ import (
|
||||
)
|
||||
|
||||
var (
|
||||
BeeApp *App
|
||||
AppName string
|
||||
AppPath string
|
||||
AppConfigPath string
|
||||
StaticDir map[string]string
|
||||
TemplateCache map[string]*template.Template
|
||||
BeeApp *App
|
||||
AppName string
|
||||
AppPath string
|
||||
AppConfigPath string
|
||||
StaticDir map[string]string
|
||||
TemplateCache map[string]*template.Template
|
||||
StaticExtensionsToGzip []string //Files which should also be compressed with gzip (.js, .css, etc)
|
||||
HttpAddr string
|
||||
HttpPort int
|
||||
HttpTLS bool
|
||||
HttpCertFile string
|
||||
HttpKeyFile string
|
||||
RecoverPanic bool
|
||||
AutoRender bool
|
||||
ViewsPath string
|
||||
RunMode string //"dev" or "prod"
|
||||
AppConfig config.ConfigContainer
|
||||
HttpAddr string
|
||||
HttpPort int
|
||||
HttpTLS bool
|
||||
HttpCertFile string
|
||||
HttpKeyFile string
|
||||
RecoverPanic bool
|
||||
AutoRender bool
|
||||
ViewsPath string
|
||||
RunMode string //"dev" or "prod"
|
||||
AppConfig config.ConfigContainer
|
||||
//related to session
|
||||
GlobalSessions *session.Manager //GlobalSessions
|
||||
SessionOn bool // whether auto start session,default is false
|
||||
@ -117,7 +117,7 @@ func init() {
|
||||
|
||||
BeegoServerName = "beegoServer"
|
||||
|
||||
EnableAdmin = true
|
||||
EnableAdmin = false
|
||||
AdminHttpAddr = "127.0.0.1"
|
||||
AdminHttpPort = 8088
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user