mirror of
https://github.com/mindoc-org/mindoc.git
synced 2025-11-24 16:53:22 +08:00
搭建框架
This commit is contained in:
@@ -14,7 +14,7 @@ timezone = Asia/Shanghai
|
||||
#数据库配置
|
||||
db_host=192.168.3.104
|
||||
db_port=3306
|
||||
db_database=webhook_db
|
||||
db_database=mindoc_db
|
||||
db_username=root
|
||||
db_password=123456
|
||||
|
||||
|
||||
16
conf/enumerate.go
Normal file
16
conf/enumerate.go
Normal file
@@ -0,0 +1,16 @@
|
||||
// package conf 为配置相关.
|
||||
package conf
|
||||
|
||||
import "github.com/astaxie/beego"
|
||||
|
||||
// 登录用户的Session名
|
||||
const LoginSessionName = "LoginSessionName"
|
||||
|
||||
// app_key
|
||||
func GetAppKey() (string) {
|
||||
return beego.AppConfig.DefaultString("app_key","go-git-webhook")
|
||||
}
|
||||
|
||||
func GetDatabasePrefix() string {
|
||||
return beego.AppConfig.DefaultString("db_prefix","md_")
|
||||
}
|
||||
Reference in New Issue
Block a user