forked from Qihoo360/doraemon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.conf
41 lines (38 loc) · 982 Bytes
/
app.conf
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
appname = doraemon
httpport = 8080
runmode = dev
autorender = false
copyrequestbody = true
sessionon = true
EnableDocs = true
# mysql
DBName = "doraemon"
DBTns = "tcp(mysql:3306)"
DBUser = "root"
DBPasswd = "root"
DBLoc = "Asia%2FShanghai"
DBConnTTL = 30
SmsUrl="http://smsurl:8000/api/v1/sms"
LanxinUrl="http://lanxinurl:8000/api/v1/lanxin/text"
CallUrl="http://callurl:8000/api/v1/lanxin/call"
DutyGroupUrl="http://dutygroupurl:8000/Api/getDutyUser"
BrokenUrl="http://brokenurl:8000/api/hosts/broken"
WebUrl="http://localhost:32000"
# oauth2
[auth.oauth2]
auth_url="https://oauth2/v1/authorize"
client_id="xxxxxxxxxxxx"
client_secret="xxxxxxxxxxxx"
token_url = "https://oauth2/v1/token"
api_url ="https://oauth2/v1/userinfo"
# ldap config
[auth.ldap]
enabled = false
ldap_url = ldap://127.0.0.1
ldap_search_dn = "cn=admin,dc=example,dc=com"
ldap_search_password = admin
ldap_base_dn = "dc=example,dc=com"
ldap_filter =
ldap_uid = cn
ldap_scope = 2
ldap_connection_timeout = 30