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