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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
| {
| "system": {
| "env": "develop",
| "port": 8003,
| "UseMultipoint": false,
| "UseRedis": false,
| "LimitCountIP": 15000,
| "LimitTimeIP": 3600,
| "RouterPrefix": "api",
| "SudoPassword": "basic2021",
| "deviceId": "DeviceID 1"
| },
| "log": {
| "path": "./logs/apsClient.log",
| "encoder": "console"
| },
| "mysql": {
| "dsn": "root:c++java123@tcp(192.168.20.119:3306)/aps_client?charset=utf8&parseTime=True&loc=Local",
| "logMode": true,
| "maxIdleCon": 50,
| "maxOpenCon": 200,
| "connMaxLifeTimeSecond": 120,
| "connMaxIdleTimeSecond": 3600
| },
| "sqlite": {
| "dsn": "aps.db",
| "logMode": true,
| "maxIdleCon": 50,
| "maxOpenCon": 200,
| "connMaxLifeTimeSecond": 120,
| "connMaxIdleTimeSecond": 3600
| },
| "redis": {
| "host": "127.0.0.1",
| "port": 6379,
| "password": "123456",
| "db": 0
| },
| "etcd": {
| "endpoints": [
| "172.20.11.127:2379"
| ],
| "dialTimeout": 5,
| "keyPrefix": "/aps/apsServer/node/",
| "tls": {
| "certFile": "/etc/kubernetes/ssl/kube-etcd-172-20-11-127.pem",
| "keyFile": "/etc/kubernetes/ssl/kube-etcd-172-20-11-127-key.pem",
| "caFile": "/etc/kubernetes/ssl/kube-ca.pem"
| }
| },
| "rancher": {
| "url": "https://121.31.232.83:8443",
| "token": "token-vvmqt:fbq7v8gwmn4bxm4j6p96jk5twmjcdzwzvnp6j787g76sq484b2b77k"
| },
| "k8s": {
| "image": "harbor.smartai.com/apsserver/apsserver:v0.4",
| "dbHost": "172.20.11.128",
| "alHost": "172.20.11.128",
| "host": "172.20.11.127",
| "ip": "172.20.11.127"
| },
| "Services":{
| "apsServer": "http://127.0.0.1:9081"
| },
| "nsqConf": {
| "NodeId": "wangpengfei",
| "nsqdAddr": "121.31.232.83:4150",
| "nsqlookupdAddr":""
| }
|
| }
|
|