-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.toml
78 lines (64 loc) · 1.13 KB
/
config.toml
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
[app]
name = "goal"
key = "dQcxsKvBZKNfWivwnhKlDwvseguknBZPEiiDRQlIatjKLLpbzK"
env = "local"
debug = true
[http]
host = "0.0.0.0"
port = "8008"
[queue]
connection = "nsq"
kafka.brokers = "localhost:9092"
nsq.address = "localhost:49156"
[db]
connection = "mysql"
host = "localhost"
port = "3306"
database = "goal"
username = "root"
password = 123456
[db.sqlite]
database = "/Users/qbhy/Downloads/goal-web/goal/database/database.sqlite"
[db.pgsql]
host = "localhost"
port = "55433"
database = "postgres"
username = "postgres"
password = "123456"
[redis]
host = "hsy"
port = "6379"
password="123456"
[redis.cache]
host = "hsy"
port = "6379"
db = 1
# 缓存配置
[cache]
driver = "redis"
connection = "cache"
prefix = "redis_"
# 哈希配置
[hashing]
driver = "bcrypt"
cost = "14"
salt = "goal"
# 自定义哈希
[hashing.hashers]
md5.driver = "md5"
md5.salt = "goal"
# 文件系统配置
[filesystem]
driver = "local"
root = "/Users/qbhy/project/go/goal/"
perm = "0777"
[filesystem.qiniu]
private = "false"
bucket = "aa"
domain = "https://xxx.xxx.com"
access_key = ""
secret_key = ""
# session 配置
[session]
id = "goal"
name = "goal_session:"