rdb.yml 1.3 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 14
  enable: false
  ssoAddr: "http://10.1.2.3:8071"
  redirectURL: "http://10.1.2.3:8072/api/rdb/auth/callback"
7
3.0.0  
710leo 已提交
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
  clientId: ""
  clientSecret: ""
  apiKey: ""

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 已提交
45
  enable: true
7
3.0.0  
710leo 已提交
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
  addr: 127.0.0.1:6379
  pass: ""
  idle: 5
  timeout:
    conn: 500
    read: 3000
    write: 3000

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:
    # two choice: shell|api
    way: shell
    worker: 10
    api: http://127.0.0.1:2008/im