Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
张磊
/
FileStorageBeego
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
eb9b9583
authored
2013-12-20 23:15:00 +0800
by
傅小黑
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
gofmt commented go file
1 parent
ce332713
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
54 deletions
config.go
config.go
View file @
eb9b958
...
...
@@ -14,76 +14,48 @@ import (
)
var
(
// beego application
BeeApp
*
App
// application configurations
BeeApp
*
App
// beego application
AppName
string
AppPath
string
AppConfigPath
string
StaticDir
map
[
string
]
string
// template caching map
TemplateCache
map
[
string
]
*
template
.
Template
// files with should be compressed with gzip (.js,.css,etc)
StaticExtensionsToGzip
[]
string
// http server configurations
TemplateCache
map
[
string
]
*
template
.
Template
// template caching map
StaticExtensionsToGzip
[]
string
// files with should be compressed with gzip (.js,.css,etc)
HttpAddr
string
HttpPort
int
HttpTLS
bool
HttpCertFile
string
HttpKeyFile
string
// flag of auto recover panic
RecoverPanic
bool
// flag of render template automatically
AutoRender
bool
RecoverPanic
bool
// flag of auto recover panic
AutoRender
bool
// flag of render template automatically
ViewsPath
string
// run mode, "dev" or "prod"
RunMode
string
RunMode
string
// run mode, "dev" or "prod"
AppConfig
config
.
ConfigContainer
// global session mananger
GlobalSessions
*
session
.
Manager
// flag of starting session auto. default is false.
SessionOn
bool
// default session provider, memory, mysql , redis ,etc.
SessionProvider
string
// the cookie name when saving session id into cookie.
SessionName
string
// session gc time for auto cleaning expired session.
SessionGCMaxLifetime
int64
// if use mysql/redis/file provider, define save path to connection info.
SessionSavePath
string
// session hash generation func.
SessionHashFunc
string
// session hash salt string.
SessionHashKey
string
// the life time of session id in cookie.
SessionCookieLifeTime
int
GlobalSessions
*
session
.
Manager
// global session mananger
SessionOn
bool
// flag of starting session auto. default is false.
SessionProvider
string
// default session provider, memory, mysql , redis ,etc.
SessionName
string
// the cookie name when saving session id into cookie.
SessionGCMaxLifetime
int64
// session gc time for auto cleaning expired session.
SessionSavePath
string
// if use mysql/redis/file provider, define save path to connection info.
SessionHashFunc
string
// session hash generation func.
SessionHashKey
string
// session hash salt string.
SessionCookieLifeTime
int
// the life time of session id in cookie.
UseFcgi
bool
MaxMemory
int64
// flag of enable gzip
EnableGzip
bool
// flag of display directory index. default is false.
DirectoryIndex
bool
// flag of hot update checking in app self. default is false.
EnableHotUpdate
bool
EnableGzip
bool
// flag of enable gzip
DirectoryIndex
bool
// flag of display directory index. default is false.
EnableHotUpdate
bool
// flag of hot update checking by app self. default is false.
HttpServerTimeOut
int64
// flag of show errors in page. if true, show error and trace info in page rendered with error template.
ErrorsShow
bool
// xsrf hash salt string.
XSRFKEY
string
// flag of enable xsrf.
EnableXSRF
bool
// the expiry of xsrf value.
XSRFExpire
int
// flag of copy raw request body in context.
CopyRequestBody
bool
ErrorsShow
bool
// flag of show errors in page. if true, show error and trace info in page rendered with error template.
XSRFKEY
string
// xsrf hash salt string.
EnableXSRF
bool
// flag of enable xsrf.
XSRFExpire
int
// the expiry of xsrf value.
CopyRequestBody
bool
// flag of copy raw request body in context.
TemplateLeft
string
TemplateRight
string
// beego server name exported in response header.
BeegoServerName
string
// flag of enable admin module to log every request info.
EnableAdmin
bool
// http server configurations for admin module.
AdminHttpAddr
string
BeegoServerName
string
// beego server name exported in response header.
EnableAdmin
bool
// flag of enable admin module to log every request info.
AdminHttpAddr
string
// http server configurations for admin module.
AdminHttpPort
int
)
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment