server.yml 4.6 KB
Newer Older
Q
qinyening 已提交
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
logger:
  dir: logs/server
  level: INFO
  # rotate by time
  keepHours: 24
  ## rotate by size
  #rotatenum: 3
  #rotatesize: 256 # unit: MB

http:
  mode: release
  showLog: true
  session:
    cookieName: ecmc-sid
    cookieDomain: ""
    httpOnly: true
    gcInterval: 60
    cookieLifetime: 86400 # unit: second, 0: cookie life same to browser

tokens:
  - rdb-builtin-token

redis:
  # as queue 
  local:
    enable: true
    addr: 127.0.0.1:6379
    pass: ""
    idle: 5
    timeout:
      conn: 500
      read: 3000
      write: 3000


rdb:
  # 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
7
710leo 已提交
57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77
  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:
      # five choice: shell|api|wechat|wechat_robot|dingtalk_robot
      way: shell
      worker: 10
      api: http://127.0.0.1:2008/im
Q
qinyening 已提交
78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122
  ## for enterprise edition
  #sso:
  #  enable: false
  #  ssoAddr: "http://{sso-host}"
  #  redirectURL: "http://{rdb-host}/auth-callback"
  #  clientId: ""
  #  clientSecret: ""
  #  apiKey: ""
  #  attributes:
  #    dispname: "display_name"
  #    email: "email"
  #    phone: "phone"
  #    im: ""
  #  coverAttributes: false
  #  stateExpiresIn: 300    
  #auth:
  #  captcha: false
  #  extraMode: 
  #    enable: false        # enable whiteList, login retry lock, userControl, ...
  #    whiteList: false
  #    frozenDays: 90      # frozen time (day)
  #    writenOffDays: 365  # writenOff time (day)


#i18n:
#  lang: zh

job:
  enable: true
  ## database | remote
  #outputComeFrom: database
  #remoteAgtdPort: 2080

transfer:
  enable: true
  backend:
    datasource: "m3db"
    m3db:
      enabled: true
      maxSeriesPoints: 720 # default 720
      name: "m3db"
      namespace: "default"
      seriesLimit: 0
      docsLimit: 0
      daysLimit: 7                               # max query time
Y
yubo 已提交
123

Q
qinyening 已提交
124 125 126
      # https://m3db.github.io/m3/m3db/architecture/consistencylevels/
      writeConsistencyLevel: "majority"          # one|majority|all
      readConsistencyLevel: "unstrict_majority"  # one|unstrict_majority|majority|all
Y
yubo 已提交
127 128 129
      writeTimeout: 5s
      fetchTimeout: 5s
      connectTimeout: 5s
Q
qinyening 已提交
130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196
      config:
        service:
          # KV environment, zone, and service from which to write/read KV data (placement
          # and configuration). Leave these as the default values unless you know what
          # you're doing.
          env: default_env
          zone: embedded
          service: m3db
          etcdClusters:
            - zone: embedded
              endpoints:
                - 127.0.0.1:2379
              #tls:
              #  caCrtPath: /etc/etcd/certs/ca.pem
              #  crtPath: /etc/etcd/certs/etcd-client.pem
              #  keyPath: /etc/etcd/certs/etcd-client-key.pem
    #tsdb:
    #  enabled: false
    #  name: "tsdb"
    #  cluster:
    #    tsdb01: 127.0.0.1:8011
    #influxdb:
    #  enabled: false
    #  username: "influx"
    #  password: "admin123"
    #  precision: "s"
    #  database: "n9e"
    #  address: "http://127.0.0.1:8086"
    #opentsdb:
    #  enabled: false
    #  address: "127.0.0.1:4242"
    #kafka:
    #  enabled: false
    #  brokersPeers: "192.168.1.1:9092,192.168.1.2:9092"
    #  topic: "n9e"
monapi:
  indexMod: server
  alarmEnabled: true
  region:
    - default
  
  # clean history event
  cleaner:
    # retention days
    days: 100
    # number of events deleted per time
    batch: 100
  notify:
    p1: ["voice", "sms", "mail", "im"]
    p2: ["sms", "mail", "im"]
    p3: ["mail", "im"]  

  # addresses accessible using browser
  link:
    stra: http://n9e.com/mon/strategy/%v
    event: http://n9e.com/mon/history/his/%v
    claim: http://n9e.com/mon/history/cur/%v

judge:
  query:
    connTimeout: 1000
    callTimeout: 2000
    maxConn:          2000
    maxIdle:          100
    connTimeout:      1000
    callTimeout:      2000
    indexCallTimeout: 2000
7
710leo 已提交
197 198 199 200 201
    indexMod:         server

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