2018-01-23 15:02:42 +08:00
|
|
|
# 模板引擎目录
|
|
|
|
viewpath = "/home/www/templates/"
|
|
|
|
# MySQL数据库配置
|
|
|
|
[database]
|
|
|
|
[[database.default]]
|
|
|
|
host = "127.0.0.1"
|
|
|
|
port = "3306"
|
|
|
|
user = "root"
|
2018-10-10 18:39:57 +08:00
|
|
|
pass = ""
|
2018-01-23 15:02:42 +08:00
|
|
|
name = "test"
|
|
|
|
type = "mysql"
|
|
|
|
role = "master"
|
|
|
|
charset = "utf8"
|
|
|
|
priority = "1"
|
|
|
|
[[database.default]]
|
|
|
|
host = "127.0.0.1"
|
|
|
|
port = "3306"
|
|
|
|
user = "root"
|
2018-10-10 18:39:57 +08:00
|
|
|
pass = ""
|
2018-01-23 15:02:42 +08:00
|
|
|
name = "test"
|
|
|
|
type = "mysql"
|
|
|
|
role = "master"
|
|
|
|
charset = "utf8"
|
|
|
|
priority = "1"
|
2018-04-18 18:05:46 +08:00
|
|
|
# Redis数据库配置
|
|
|
|
[redis]
|
|
|
|
disk = "127.0.0.1:6379,0"
|
|
|
|
cache = "127.0.0.1:6379,1"
|