-
Notifications
You must be signed in to change notification settings - Fork 10
/
config_dev.yaml
64 lines (57 loc) · 1.3 KB
/
config_dev.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
Name: FormulaGo
IsDemo: false # true: demo mode, forbid operations like create, update, delete
IsProd: false
Host: 0.0.0.0
Port: 8191
Timeout: 30000
Captcha:
KeyLong: 5
ImgWidth: 240
ImgHeight: 80
Auth:
OAuthKey: OauthJf3z1n2xxx2cr1
AccessSecret: D86VKDtsJf3z1nxxxxtsJf3z1n5
AccessExpire: 259200 # seconds, 3 days
Redis:
Enable: false
Host: 127.0.0.1
Port: 6379
Type: node
Password: password
DB: 0
Database:
Type: mysql # mysql, postgres
Host: 127.0.0.1
Port: 3306
DBName: formula_go
Username: root # set your username
Password: password # set your password
MaxOpenConn: 100
SSLMode: false
CacheTime: 5
Casbin:
ModelText: |
[request_definition]
r = sub, obj, act
[policy_definition]
p = sub, obj, act
[role_definition]
g = _, _
[policy_effect]
e = some(where (p.eft == allow))
[matchers]
m = r.sub == p.sub && keyMatch2(r.obj,p.obj) && r.act == p.act
# Simple Storage Service
S3:
Type: "AliyunOSS"
AliyunOSS:
Endpoint: "oss-cn-shenzhen.aliyuncs.com"
BucketName: "xxxxx"
BasePath: "xxxxx"
SecretID: "LTAI5t9YQEF4uAxxxxxxxxxxxx"
SecretKey: "WUintXCcccuwFWOV8FAxxxxxxxxxxxx"
Domain: "oss.xxx.com"
# Wecom(企业微信)
Wecom:
CorpId: "wwxeddc2dddd8cxxx"
SecretId: "x7T_hcxv8qxxxabRobddddcNActLf3b5xxxT_I"