rdb.yml 1.7 KB
Newer Older
7
3.0.0  
710leo 已提交
1 2 3 4 5 6 7 8 9 10 11
logger:
  dir: logs/rdb
  level: INFO
  keepHours: 24

http:
  mode: release
  cookieDomain: ""
  cookieName: ecmc-user

sso:
U
Ulric Qin 已提交
12 13
  enable: false
  ssoAddr: "http://10.1.2.3:8071"
14
  # TODO: redirectURL: "http://10.1.2.3:8072/auth-callback"
U
Ulric Qin 已提交
15
  redirectURL: "http://10.1.2.3:8072/api/rdb/auth/callback"
7
3.0.0  
710leo 已提交
16 17 18
  clientId: ""
  clientSecret: ""
  apiKey: ""
Y
yubo 已提交
19 20 21 22 23 24
  attributes:
    dispname: "display_name"
    email: "email"
    phone: "phone"
    im: ""
  coverAttributes: false
25
  stateExpiresIn: 300
7
3.0.0  
710leo 已提交
26

Y
yubo 已提交
27 28
captcha: true

7
3.0.0  
710leo 已提交
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
tokens:
  - rdb-builtin-token

# for ldap authorization
ldap:
  host: "ldap.example.org"
  port: 389
  baseDn: "dc=example,dc=org"
  # AD: manange@example.org
  bindUser: "cn=manager,dc=example,dc=org"
  bindPass: "*******"
  # openldap: (&(uid=%s))
  # AD: (&(sAMAccountName=%s))
  authFilter: "(&(uid=%s))"
  attributes:
    dispname: "cn"
    email: "mail"
    phone: "mobile"
    im: ""
  coverAttributes: false
  autoRegist: true
  tls: false
  startTLS: false

# as queue for sender
redis:
U
Ulric Qin 已提交
55
  enable: true
7
3.0.0  
710leo 已提交
56 57 58 59 60 61 62 63
  addr: 127.0.0.1:6379
  pass: ""
  idle: 5
  timeout:
    conn: 500
    read: 3000
    write: 3000

qd_lm's avatar
qd_lm 已提交
64 65 66 67 68
rabbitmq:
  enable: false
  addr: amqp://root:1234@127.0.0.1:5672/
  queue: test

7
3.0.0  
710leo 已提交
69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85
sender:
  mail:
    # three choice: smtp|shell|api
    way: smtp
    worker: 10
    api: http://127.0.0.1:2008/mail
  sms:
    # two choice: shell|api
    way: api
    worker: 10
    api: http://127.0.0.1:2008/sms
  voice:
    # two choice: shell|api
    way: shell
    worker: 10
    api: http://127.0.0.1:2008/voice
  im:
86
    # five choice: shell|api|wechat|wechat_robot|dingtalk_robot
7
3.0.0  
710leo 已提交
87 88 89
    way: shell
    worker: 10
    api: http://127.0.0.1:2008/im
qd_lm's avatar
qd_lm 已提交
90 91 92 93

wechat:
  corp_id: "xxxxxxxxxxxxx"
  agent_id: 1000000
Y
yubo 已提交
94
  secret: "xxxxxxxxxxxxxxxxx"