Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
beego
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
beego
Commits
f2edfbe7
Commit
f2edfbe7
authored
Dec 09, 2015
by
astaxie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make the other three beauty
parent
4f829af7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
config.go
config.go
+3
-5
No files found.
config.go
View file @
f2edfbe7
...
...
@@ -219,6 +219,9 @@ func ParseConfig() (err error) {
BConfig
.
WebConfig
.
AutoRender
=
AppConfig
.
DefaultBool
(
"AutoRender"
,
BConfig
.
WebConfig
.
AutoRender
)
BConfig
.
WebConfig
.
ViewsPath
=
AppConfig
.
DefaultString
(
"ViewsPath"
,
BConfig
.
WebConfig
.
ViewsPath
)
BConfig
.
WebConfig
.
DirectoryIndex
=
AppConfig
.
DefaultBool
(
"DirectoryIndex"
,
BConfig
.
WebConfig
.
DirectoryIndex
)
BConfig
.
WebConfig
.
FlashName
=
AppConfig
.
DefaultString
(
"FlashName"
,
BConfig
.
WebConfig
.
FlashName
)
BConfig
.
WebConfig
.
FlashSeperator
=
AppConfig
.
DefaultString
(
"FlashSeperator"
,
BConfig
.
WebConfig
.
FlashSeperator
)
BConfig
.
WebConfig
.
EnableDocs
=
AppConfig
.
DefaultBool
(
"EnableDocs"
,
BConfig
.
WebConfig
.
EnableDocs
)
BConfig
.
WebConfig
.
XSRFKEY
=
AppConfig
.
DefaultString
(
"XSRFKEY"
,
BConfig
.
WebConfig
.
XSRFKEY
)
BConfig
.
WebConfig
.
EnableXSRF
=
AppConfig
.
DefaultBool
(
"EnableXSRF"
,
BConfig
.
WebConfig
.
EnableXSRF
)
BConfig
.
WebConfig
.
XSRFExpire
=
AppConfig
.
DefaultInt
(
"XSRFExpire"
,
BConfig
.
WebConfig
.
XSRFExpire
)
...
...
@@ -231,11 +234,6 @@ func ParseConfig() (err error) {
BConfig
.
WebConfig
.
Session
.
SessionGCMaxLifetime
=
AppConfig
.
DefaultInt64
(
"SessionGCMaxLifetime"
,
BConfig
.
WebConfig
.
Session
.
SessionGCMaxLifetime
)
BConfig
.
WebConfig
.
Session
.
SessionCookieLifeTime
=
AppConfig
.
DefaultInt
(
"SessionCookieLifeTime"
,
BConfig
.
WebConfig
.
Session
.
SessionCookieLifeTime
)
BConfig
.
WebConfig
.
FlashName
=
AppConfig
.
DefaultString
(
"FlashName"
,
BConfig
.
WebConfig
.
FlashName
)
BConfig
.
WebConfig
.
FlashSeperator
=
AppConfig
.
DefaultString
(
"FlashSeperator"
,
BConfig
.
WebConfig
.
FlashSeperator
)
BConfig
.
WebConfig
.
EnableDocs
=
AppConfig
.
DefaultBool
(
"EnableDocs"
,
BConfig
.
WebConfig
.
EnableDocs
)
if
sd
:=
AppConfig
.
String
(
"StaticDir"
);
sd
!=
""
{
for
k
:=
range
BConfig
.
WebConfig
.
StaticDir
{
delete
(
BConfig
.
WebConfig
.
StaticDir
,
k
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment