-
Notifications
You must be signed in to change notification settings - Fork 12
/
sample.conf.json
38 lines (38 loc) · 1.38 KB
/
sample.conf.json
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
{
"listen-host": "",
"listen-port": 7080,
"services": [
{
"is-channels-ec": false,
"name": "echo_server",
"workerNum": 5,
"timeout": 0,
"wx-params": {
"token": "your_token_at_weixin_admin",
"app-id": "your_appId_at_weixin_admin",
"app-secret": "your_appSecret_at_weixin_admin",
"aes-key": "let_this_empty_or_null_if_plain_text_transfer"
},
"listen-endpoints": {
"service-path": "/wx",
"redirect-path": "/redirect"
},
"msg-proxy-pass": "http://yourhost.or.ip.here/empty_is_ok",
"redirect-url": "http://yourhost.io.ip.here/path/to/redirect",
"redirect-userinfo-flag": "login, register or any-strings else if you want use snsapi_userinfo"
}
],
"token-cache-dir": "/path/to/cache_dir",
"common-endpoints": {
"health-check": "/health",
"wx-qr": "/qr",
"wx-user": "/user",
"sns-auth2": "/sns-auth2",
"short-url": "/short-url",
"tmpl-msg": "/tmpl-msg",
"sign-jsapi": "/sign-jsapi",
"channels-ec-order-detail": "/channles-ec-order-detail",
"channels-ec-refund-detail": "/channels-ec-refund-detail"
},
"dont-append-userinfo": false
}