-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.yaml
90 lines (82 loc) · 1.62 KB
/
config.yaml
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
78
79
80
81
82
83
84
85
86
87
88
89
90
# 系统配置
system:
env: local
port: 8888
db-type: mysql
oss-type: local
use-redis: false
use-mongo: false
use-multipoint: false
# IP限制次数 一个小时15000次
ip-limit-count: 15000
# IP限制一个小时
ip-limit-time: 3600
# 路由全局前缀
router-prefix: ""
# zap 日志配置
zap:
level: info
format: console
prefix: "go-admin "
director: logs
show-line: true
encode-level: LowercaseLevelEncoder
stacktrace-key: stacktrace
log-in-console: true
retention-day: -1
# 数据库配置
mysql:
host: 192.168.3.216
port: 3306
config: ""
db-name: test
username: root
password: 123456
max-idle-conn: 10
max-open-conn: 100
log-mode: ""
log-zap: false
prefix: ""
singular:
pgsql:
host: localhost
port: 5432
config: ""
db-name: yun
username: yun
password: 123456
max-idle-conn: 10
max-open-conn: 100
log-mode: ""
log-zap: false
prefix: ""
singular:
redis:
#使用集群模式addr和db默认无效
addr: 139.159.151.30:6379
password: "rediswx"
db: 0
# captcha configuration
captcha:
key-long: 6
img-width: 240
img-height: 80
open-captcha: 0 # 0代表一直开启,大于0代表限制次数
open-captcha-timeout: 3600 # open-captcha大于0时才生效
jwt:
signing-key: town-coding
expires-time: 7d
buffer-time: 1d
issuer: town-coding
# 文件上传
local:
path: uploads/file
store-path: uploads/file
# aliyun oss configuration
aliyun-oss:
endpoint: yourEndpoint
access-key-id: yourAccessKeyId
access-key-secret: yourAccessKeySecret
bucket-name: yourBucketName
bucket-url: yourBucketUrl
base-path: yourBasePath