-
Notifications
You must be signed in to change notification settings - Fork 60
/
.env.example
63 lines (52 loc) · 969 Bytes
/
.env.example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# toml配置文件
# Wiki:https://github.com/toml-lang/toml
ServiceName = "snow"
Debug = true
Env = "local" # local-本地 develop-开发 beta-预发布 production-线上
PrometheusCollectEnable = true
SkyWalkingOapServer = "127.0.0.1:11800"
[Log]
Handler = "file"
Dir = "./logs"
Level = "info"
[Db]
Driver = "mysql"
[Db.Option]
MaxConns = 128
MaxIdle = 32
IdleTimeout = 180 # second
Charset = "utf8mb4"
ConnectTimeout = 3 # second
[Db.Master]
Host = "127.0.0.1"
Port = 3306
User = "root"
Password = "123456"
DBName = "test"
[[Db.Slaves]] # 支持多个从库
Host = "127.0.0.1"
Port = 3306
User = "root"
Password = "123456"
DBName = "test"
[Api]
Host = "0.0.0.0"
Port = 8080
[Cache]
Driver = "redis"
[Redis.Master]
Host = "127.0.0.1"
Port = 6379
#Password = ""
#DB = 0
#[Redis.Option]
#MaxIdle = 64
#MaxConns = 256
#IdleTimeout = 180 # second
#ConnectTimeout = 1
#ReadTimeout = 1
#WriteTimeout = 1
[AliMns]
Url = ""
AccessKeyId = ""
AccessKeySecret = ""