mirror of
https://gitee.com/johng/gf.git
synced 2024-12-05 13:48:09 +08:00
28 lines
713 B
TOML
28 lines
713 B
TOML
|
# 模板引擎目录
|
||
|
viewpath = "/home/www/templates/"
|
||
|
# MySQL数据库配置
|
||
|
[database]
|
||
|
[[database.default]]
|
||
|
host = "127.0.0.1"
|
||
|
port = "3306"
|
||
|
user = "root"
|
||
|
pass = "123456"
|
||
|
name = "test"
|
||
|
type = "mysql"
|
||
|
role = "master"
|
||
|
charset = "utf8"
|
||
|
priority = "1"
|
||
|
[[database.default]]
|
||
|
host = "127.0.0.1"
|
||
|
port = "3306"
|
||
|
user = "root"
|
||
|
pass = "123456"
|
||
|
name = "test"
|
||
|
type = "mysql"
|
||
|
role = "master"
|
||
|
charset = "utf8"
|
||
|
priority = "1"
|
||
|
# Redis数据库配置
|
||
|
[redis]
|
||
|
disk = "127.0.0.1:6379,0"
|
||
|
cache = "127.0.0.1:6379,1"
|