From a8f61fb74a05455404170d86a63e7987b82aa574 Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期六, 26 八月 2023 19:39:54 +0800 Subject: [PATCH] 加日志 --- conf/apsClient.json | 75 ++++++++----------------------------- 1 files changed, 16 insertions(+), 59 deletions(-) diff --git a/conf/apsClient.json b/conf/apsClient.json index aaaf003..677bcec 100644 --- a/conf/apsClient.json +++ b/conf/apsClient.json @@ -2,24 +2,14 @@ "system": { "env": "develop", "port": 8003, - "UseMultipoint": false, - "UseRedis": false, - "LimitCountIP": 15000, - "LimitTimeIP": 3600, - "RouterPrefix": "api", - "SudoPassword": "basic2021" + "deviceId": "DeviceID1", + "netSetShellPath": "/data/network/", + "netUpShellName": "up.sh", + "netDownShellName": "down.sh" }, "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", @@ -29,57 +19,24 @@ "connMaxLifeTimeSecond": 120, "connMaxIdleTimeSecond": 3600 }, - "redis": { - "host": "127.0.0.1", - "port": 6379, - "password": "123456", - "db": 0 - }, - "captcha": { - "keyLong": 6, - "imgWidth": 240, - "imgHeight": 80, - "openCaptcha": 0, - "openCaptchaTimeout": 3600 - }, - "jwt": { - "SigningKey": "327a9457-899a-481e-8b30-58cc97e5b808", - "ExpiresTime": "7d", - "BufferTime": "1d", - "Issuer": "qmPlus" - }, - "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" + "apsServer": "http://192.168.20.119:9081" }, "nsqConf": { "NodeId": "wangpengfei", "nsqdAddr": "121.31.232.83:4150", "nsqlookupdAddr":"" - } - + }, + "PLCAddresses":[ + { + "fieldName": "绀轰緥瀛楁1", + "address": "0x0001" + }, + { + "fieldName": "绀轰緥瀛楁2", + "address": "0x0002" + } + ] } -- Gitblit v1.8.0