145 lines
3.1 KiB
YAML
145 lines
3.1 KiB
YAML
Service: default
|
|
Server:
|
|
GRPC:
|
|
BindIP: 0.0.0.0
|
|
Port: 12000
|
|
HTTP:
|
|
BindIP: 0.0.0.0
|
|
Port: 12001
|
|
|
|
|
|
Databases:
|
|
Driver: postgres
|
|
Source:
|
|
- host=127.0.0.1 user=postgres password=Weidong1214 dbname=bsm_dev port=5432 sslmode=disable TimeZone=Asia/Shanghai
|
|
|
|
Cache: redis://null:Weidong1214@127.0.0.1:6379/1
|
|
SecretKey: CHANGE_ME
|
|
|
|
# Authorization contains the HS256 signing key and maximum token lifetime in
|
|
# seconds. Clients send the raw JWT in the Authorization header (no Bearer).
|
|
Authorization:
|
|
Key: CHANGE_ME_32_BYTE_JWT_SECRET_KEY
|
|
Expire: 86400
|
|
Anonymous:
|
|
- /passport.Login/Pwd
|
|
- /passport.Login/Code
|
|
- /passport.Login/Quick
|
|
- /passport.Register/Pwd
|
|
- /passport.Register/Code
|
|
- /passport.Forget/Verify
|
|
- /passport.Forget/Reset
|
|
- /passport.Verify/Request
|
|
- /passport.Verify/JumioCallback
|
|
- /market.Agency/Login
|
|
- /mall.Staff/Login
|
|
- /rest/fts/ping
|
|
- /rest/fts/config
|
|
- /rest/logs/ping
|
|
- /rest/mgt/ping
|
|
- /rest/mgt/session
|
|
- /rest/mgt/login
|
|
- /rest/mgt/refresh
|
|
- /rest/mgt/reset
|
|
|
|
# Enabled services. Use "all" to enable every registered service.
|
|
Services:
|
|
- ads
|
|
- cloud
|
|
- cms
|
|
- feedback
|
|
- fts
|
|
- initial
|
|
- logs
|
|
- mgt
|
|
- passport
|
|
- sender
|
|
- address
|
|
- mall
|
|
- market
|
|
- order
|
|
- wallet
|
|
|
|
# Service-specific configuration is flat at the document root. Shared
|
|
# database, Redis, RPC, APM and Etcd settings above are assigned automatically.
|
|
Fts:
|
|
MinioOss:
|
|
Site: http://127.0.0.1:9000
|
|
Endpoint: 127.0.0.1:9000
|
|
AccessKeyId: CHANGE_ME
|
|
AccessKeySecret: CHANGE_ME
|
|
UseSSL: false
|
|
Local:
|
|
Site: http://127.0.0.1:12001/files
|
|
UploadDir: ./uploader/
|
|
FtsConfig:
|
|
InputKey: file
|
|
MaxSize: 5368709120
|
|
Allows: [.doc, .docx, .txt, .png, .jpg, .jpeg, .gif, .pdf, .xls, .xlsx, .ppt, .pptx, .mp4, .avi, .mkv, .webp, .mov, .wmv, .mp3, .wav]
|
|
|
|
Mgt:
|
|
InitRootUser: true
|
|
SecretKey: CHANGE_ME
|
|
|
|
Passport:
|
|
Token:
|
|
Prefix: /token/
|
|
Expire: 86400
|
|
Kyc:
|
|
Provider: jumio
|
|
BaseUrl: CHANGE_ME
|
|
ApiSecret: CHANGE_ME
|
|
ApiToken: CHANGE_ME
|
|
ApiArgs: CHANGE_ME
|
|
WeChatConf:
|
|
AppID: CHANGE_ME
|
|
AppSecret: CHANGE_ME
|
|
|
|
Sender:
|
|
SMTP:
|
|
default:
|
|
Endpoint: smtp.example.com
|
|
Port: 465
|
|
Username: CHANGE_ME
|
|
Password: CHANGE_ME
|
|
FromAddress: no-reply@example.com
|
|
FromName: BSM
|
|
SMS:
|
|
default:
|
|
Endpoint: CHANGE_ME
|
|
AccessKeyId: CHANGE_ME
|
|
AccessKeySecret: CHANGE_ME
|
|
Region: CHANGE_ME
|
|
Code:
|
|
Length: 6
|
|
Expire: 300
|
|
MaxSentLimit: 5
|
|
CokeyKey: code
|
|
BlackListFilter: [127.0.0.1]
|
|
|
|
Wallet:
|
|
QrCodeSavePath: ./qrcode/
|
|
WeChat:
|
|
AppID: CHANGE_ME
|
|
AppSecret: CHANGE_ME
|
|
SerialNo: CHANGE_ME
|
|
APIV3Key: CHANGE_ME
|
|
PrivateKey: CHANGE_ME
|
|
NotifyURL: CHANGE_ME
|
|
Currency: CNY
|
|
MchID: CHANGE_ME
|
|
Alipay:
|
|
AppID: CHANGE_ME
|
|
AppSecret: CHANGE_ME
|
|
PrivateKey: CHANGE_ME
|
|
IsProd: false
|
|
NotifyURL: CHANGE_ME
|
|
ReturnURL: CHANGE_ME
|
|
QuitURL: CHANGE_ME
|
|
Wallet:
|
|
Name: default
|
|
URL: CHANGE_ME
|
|
AlipyIsOpen: false
|
|
WalletIsOpen: false
|
|
WechatpayIsOpen: false
|