Service: default
Server:
  GRPC:
    BindIP: 0.0.0.0
    Port: 12000
  HTTP:
    BindIP: 0.0.0.0
    Port: 12001

# Dynamic JSON-to-protobuf unary RPC endpoint: POST /rpc/{module}/{service}/{method}
# An empty allow list denies every dynamic call. Use "*" to expose all
# reflection-visible unary methods, or list full service/method names.
DynamicRPC:
  Allow:
    - "*"

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

# 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
