mirror of
https://github.com/mindoc-org/mindoc.git
synced 2025-04-05 17:15:20 +08:00
添加配置说明
This commit is contained in:
parent
50bf601176
commit
d3288afdc9
@ -8,10 +8,19 @@ copyrequestbody = true
|
||||
|
||||
#默认Session生成Key的秘钥
|
||||
beegoserversessionkey=123456
|
||||
#Session储存方式
|
||||
|
||||
########Session储存方式##############
|
||||
#以文件方式储存
|
||||
sessionprovider=file
|
||||
sessionproviderconfig=./logs
|
||||
|
||||
#以redis方式储存
|
||||
#sessionprovider=redis
|
||||
#sessionproviderconfig=127.0.0.1:6379
|
||||
#以memcache方式储存
|
||||
#sessionprovider=memcache
|
||||
#sessionproviderconfig=127.0.0.1:11211
|
||||
#以内存方式托管Session
|
||||
#sessionprovider=memory
|
||||
|
||||
#时区设置
|
||||
timezone = Asia/Shanghai
|
||||
|
3
main.go
3
main.go
@ -3,6 +3,9 @@ package main
|
||||
import (
|
||||
_ "github.com/go-sql-driver/mysql"
|
||||
_ "github.com/lifei6671/godoc/routers"
|
||||
_ "github.com/astaxie/beego/session/redis"
|
||||
_ "github.com/astaxie/beego/session/memcache"
|
||||
_ "github.com/astaxie/beego/session/mysql"
|
||||
"github.com/astaxie/beego"
|
||||
"github.com/lifei6671/godoc/commands"
|
||||
"fmt"
|
||||
|
Loading…
Reference in New Issue
Block a user