astaxie
6660720ce6
update some config name
2016-01-12 21:55:02 +08:00
astaxie
01012fa898
admin configure
2016-01-08 01:40:19 +08:00
astaxie
c68505e451
read config from app.conf for session
2016-01-07 23:55:55 +08:00
astaxie
98f3fecc03
fix the typo
2016-01-07 23:35:01 +08:00
astaxie
c6141f5d94
add httpsaddr
2016-01-07 23:31:33 +08:00
astaxie
a411042416
fix the init parse for config
2016-01-06 14:55:18 +08:00
Vitaly Velikodny
48fd9675ad
Refactoring: Move dev & prod runmodes to const
2015-12-29 21:32:37 +03:00
fud
c43e3d6684
fix type mismatch error
2015-12-21 16:05:26 +08:00
fuxiaohei
f9138c5a99
simplify config.go
2015-12-17 20:05:00 +08:00
astaxie
f2edfbe7ae
make the other three beauty
2015-12-10 00:12:52 +08:00
astaxie
4f829af7aa
gofmt the config default
2015-12-10 00:11:24 +08:00
astaxie
d1bba02958
refact beego config
2015-12-09 23:35:04 +08:00
Ryan A. Chapman
7151b96465
Log config parsing errors
...
Beego currently handles the case of "conf/app.conf"
not existing, but all other errors are not logged.
This fixes that.
I ran into an issue where beego was not listening on the
correct port, and it turned out that the conf/app.conf file
had a colon ":" instead of an equal sign "=" (confusion of
INI vs YAML formats). When there was a parsing error, beego
would give up on parsing app.conf and not log anything to the
console.
2015-11-29 15:09:28 -07:00
astaxie
9b725c73c3
Merge pull request #1376 from JessonChan/develop
...
static file code refactor and bug fixed
2015-11-08 23:21:16 +08:00
JessonChan
860568cb6c
modified as astaxie reviews
...
https://github.com/astaxie/beego/pull/1376
2015-11-06 18:51:53 +08:00
John Deng
205de8418d
Fixed typos
2015-11-03 23:43:34 +08:00
JessonChan
936cb735e1
file extensions bug fixed
2015-09-22 13:27:35 +08:00
JessonChan
f708ce0299
当有设置的压缩类型时,丢弃默认类型(css,js)
2015-09-22 12:24:52 +08:00
JessonChan
b9fb3a62f5
static file name default lower case
2015-09-22 11:59:48 +08:00
astaxie
ff5b09fc19
golint context
2015-09-10 15:31:09 +08:00
astaxie
f28a941e26
make golint happy and also make the config readable
2015-09-07 23:19:42 +08:00
astaxie
eb3479b753
optimize the app structure
2015-09-06 23:00:42 +08:00
astaxie
4138fe0217
beego suppot graceful restart application
2015-05-25 09:10:37 +08:00
astaxie
d446b5b011
improve the defaultval
2015-05-25 09:10:36 +08:00
astaxie
2ba12ad1e1
config read and set support Runmode
2015-05-25 09:10:35 +08:00
astaxie
3aceaf8838
error support controller
2015-02-26 23:34:43 +08:00
git
d0b43ef4f5
beego.AppConfig.Strings bug
2014-11-20 16:35:04 +08:00
astaxie
bb795847da
fix the not exist config file application
2014-11-06 11:12:00 +08:00
astaxie
15242d89ce
simple the session init
2014-11-04 19:08:06 +08:00
astaxie
716962672f
fix #751
...
add config ListenTCP4
when user want to listen on the TCP4, because now almost use the ipv4.
but default lister on the ipv6
2014-11-03 15:06:25 +08:00
astaxie
94c84b846f
fix the init logger
2014-10-31 09:02:16 +08:00
astaxie
71149218d1
fix the log level
2014-10-30 17:43:32 +08:00
astaxie
14114018ea
config ini support include
2014-10-24 19:03:27 +08:00
astaxie
ec6383c07d
Merge pull request #858 from bsingr/develop
...
Allow to use fastcgi via standard io.
2014-10-20 18:30:10 +08:00
Jens Bissinger
812950b60d
Allow to use fastcgi via standard io.
2014-10-13 13:47:44 +02:00
Bill Davis
a27f5c0dc0
Remove dependency of third party lib
2014-10-09 09:17:10 -04:00
Bill Davis
a06e0f27ad
Support run mode set by env var BEEGO_RUNMODE
2014-10-08 15:00:07 -04:00
astaxie
8716185de8
fix #794
2014-10-01 22:10:33 +08:00
astaxie
3a5de83ec2
beego: support router case sensitive
2014-09-28 22:10:43 +08:00
astaxie
a144769515
update the documents & comments
2014-08-18 16:41:43 +08:00
astaxie
3d74a1a436
make the getconfig public
...
// Getconfig throw the Runmode
// [dev]
// name = astaixe
// IsEnable = false
// [prod]
// name = slene
// IsEnable = true
//
// usage:
// GetConfig("string", "name")
// GetConfig("bool", "IsEnable")
2014-08-11 22:13:18 +08:00
astaxie
d7a5281bda
session: support cookie domain
2014-08-04 16:21:06 +08:00
astaxie
fefd8ddb5b
beego: update licence& fix #669
2014-07-03 23:40:21 +08:00
astaxie
0f170a80da
update the comments fix #658
2014-06-25 10:39:37 +08:00
astaxie
cff632f553
beego: swagger EnableDocs
2014-06-16 16:05:19 +08:00
astaxie
deb553be7f
beego:confgi support difference run mode section
...
runmode = dev
appname = doraemon
[dev]
httpport = 8880
sessionon = true
[prod]
httpport = 8888
sessionon = true
[test]
httpport = 8080
sessionon = false
2014-06-11 12:00:50 +08:00
astaxie
675643c68d
beego: run mode support test
2014-06-10 22:47:48 +08:00
astaxie
a2a6f47afa
beego: support other config provider
2014-05-25 22:37:38 +08:00
astaxie
23229ef9ef
beego: BeegoServerName & beego.Run
...
BeegoServerName change to beegoServer+Version
beego.Run(“:8089”)
2014-05-25 22:35:20 +08:00
astaxie
04290dfc68
beego: delete hotupdate
2014-05-20 16:41:39 +08:00
astaxie
3f2a712ba8
beego:change default port
2014-05-20 15:40:05 +08:00
astaxie
18a02d7d60
beego:support https & http listen
2014-05-20 15:30:17 +08:00
astaxie
c188cbbcb4
update all files License
2014-05-17 02:26:50 +08:00
astaxie
4124760706
beego: filter the static file's url
2014-04-07 14:20:30 +08:00
astaxie
fc982feeb9
fix go run hello.go & console log
2014-04-04 09:49:57 +08:00
asta.xie
bf0b1af64f
add workPath don't chdir when go run or go test
2014-04-01 18:08:00 +08:00
asta.xie
4f819dbd9a
Add a function SetLogFuncCall to enable
2014-03-26 00:06:25 +08:00
asta.xie
3f5fee2dc6
Logs support file & filenum
2014-03-25 23:48:58 +08:00
Jared Folkins
4951314837
added FlashName,FlashSeperator, & Tests
2014-03-13 22:34:22 -07:00
slene
3b99f37aa1
add a empty fake config Initialize AppConfig to avoid nil pointer runtime error.
2014-01-11 14:28:11 +08:00
astaxie
9cbd475701
beego support new version session
2014-01-05 14:59:39 +08:00
傅小黑
eb9b958309
gofmt commented go file
2013-12-20 23:15:00 +08:00
傅小黑
ce332713c4
gofmt commented go files
2013-12-20 22:35:16 +08:00
傅小黑
b459cf2347
add api comments in file config.go, controller.go, filter.go and flash.go
2013-12-20 21:16:26 +08:00
slene
68d4c2c0d8
fix: AppPath is wrong. Move BeeLogger to config.go init.
2013-12-19 12:22:30 +08:00
astaxie
bc0d4ac7cb
set admin default to false. default the admin console is shut down.
2013-12-18 23:23:00 +08:00
Francois
02eacb8e95
Update config.go
2013-12-14 20:34:27 +02:00
astaxie
fd78ea5c4a
set cookie to zero
2013-12-12 10:43:13 +08:00
astaxie
b733b98408
for init if doesn't have app.conf will not panic
2013-12-10 00:17:22 +08:00
astaxie
4fa625dea6
default app HttpAddr should none
2013-12-07 17:22:57 +08:00
astaxie
de70732cd4
typo
2013-12-06 13:46:14 +08:00
astaxie
7125bd8faa
support json comments
2013-12-06 13:43:08 +08:00
Pengfei Xue
420e816bed
panic if parse failed
2013-12-04 23:53:36 +08:00
astaxie
fb6312a303
reverse from pull 330
2013-12-04 17:03:49 +08:00
astaxie
3c91360d72
dictinct system pkg and third pkg
2013-12-03 21:37:39 +08:00
Pengfei Xue
12ade02f2d
panic if parse config failed
2013-12-03 19:56:30 +08:00
Pengfei Xue
9cac7504c9
fixup! fix typo, use camel notation for all keys
2013-12-03 16:37:39 +08:00
Pengfei Xue
75d09d138a
fix typo, use camel notation for all keys
2013-12-03 13:23:33 +08:00
Pengfei Xue
07312e240c
remove duplicated config initialization
2013-12-03 13:15:32 +08:00
astaxie
6c13bdde25
support profile & statistics in another port
2013-11-13 21:11:09 +08:00
astaxie
23d79b8b05
#254 add SessionHashFunc SessionHashKey SessionCookieLifeTime
2013-11-03 21:41:07 +08:00
astaxie
0adb864219
fix #270
...
同时支持全部小写和驼峰写法
2013-11-02 22:45:08 +08:00
knightmare shava
290a9d184d
minor fix,if path does not include :
2013-11-01 12:34:16 +08:00
knightmare shava
73a2081ae7
improve StaticDir config file parser.New style is like "css:static/css js:static/js"
2013-11-01 08:23:57 +08:00
astaxie
c1b2e1d0ca
fix #238
2013-10-28 23:30:16 +08:00
astaxie
3ac5eec301
fix #253
2013-10-28 22:38:50 +08:00
sdjc
9ddbab59bb
Update config.go
2013-09-27 08:37:17 +08:00
astaxie
59a67720b4
xsrf's defaut time set to 0 & fix ts not use
2013-09-25 23:07:54 +08:00
astaxie
83e26fdc9b
fix config bug
2013-09-10 14:47:48 +08:00
astaxie
bd61dd9ffc
change a log about new version
2013-09-10 00:00:18 +08:00
astaxie
0b74db64eb
fix typo for templateLeft
2013-08-19 13:02:18 +08:00
astaxie
4f538e7fd2
fix #163
...
you can set the delimiter like this
beego.TemplateLeft="{#"
beego.TemplateRight="#}"
or can set the config file like app.ini
templateleft={#
templateright=#}
2013-08-19 10:41:09 +08:00
benlovell
9cbefacf52
Fixes some minor spelling mistakes and typos
2013-08-14 09:06:40 +02:00
astaxie
10f4e822c3
add XSRFExpire
2013-08-07 11:22:23 +08:00
astaxie
f9a31ea00a
EnableXSRF
2013-08-06 23:21:52 +08:00
astaxie
7bfb4126d7
support copy requestbody
2013-07-08 23:12:31 +08:00
astaxie
d2a16ff8f6
fix #26 add xsrf function
2013-07-08 16:17:08 +08:00
astaxie
11977f4f77
fix #90
2013-07-07 17:58:50 +08:00
astaxie
bf9de3bcf6
add HttpServerTimeOut setting
2013-07-03 15:29:54 +08:00
astaxie
d627ec013e
add config to countol if enable hotupdate
2013-06-28 22:09:08 +08:00