From c23176522c62207f82e5fc0a9900031fafe7981a Mon Sep 17 00:00:00 2001 From: ChenYi <296215406@outlook.com> Date: Thu, 7 Aug 2025 14:08:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96Pulsar=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Directory.Build.targets | 2 +- JiShe.ServicePro | 2 +- .../appsettings.Development.json | 18 +++++++++++++++++- .../appsettings.Production.json | 16 ++++++++++++++++ 4 files changed, 35 insertions(+), 3 deletions(-) diff --git a/Directory.Build.targets b/Directory.Build.targets index 8342f78..b368fca 100644 --- a/Directory.Build.targets +++ b/Directory.Build.targets @@ -103,7 +103,7 @@ - + \ No newline at end of file diff --git a/JiShe.ServicePro b/JiShe.ServicePro index e6e074a..44ec6b5 160000 --- a/JiShe.ServicePro +++ b/JiShe.ServicePro @@ -1 +1 @@ -Subproject commit e6e074ada12b85522117487e7d80074a9b26a657 +Subproject commit 44ec6b580dbf0e72591a4ea663615cc8c608b6f2 diff --git a/host/JiShe.IoT.HttpApi.Host/appsettings.Development.json b/host/JiShe.IoT.HttpApi.Host/appsettings.Development.json index 36f3dc7..67c72ed 100644 --- a/host/JiShe.IoT.HttpApi.Host/appsettings.Development.json +++ b/host/JiShe.IoT.HttpApi.Host/appsettings.Development.json @@ -31,6 +31,22 @@ "NumPartitions": 30, "TaskThreadCount": -1 }, + "Pulsar": { + "ServiceUrl": "pulsar+ssl://iot-north-mq.heclouds.com:6651", + "WebUrl": "http://localhost:8080", + "EnableFilter": true, + "EnableAuthorization": true, + "EnableIoTAuth": true, + "EnableTls": null, + "TlsCertificatePath": null, + "TlsPrivateKeyPath": null, + "ValidateServerCertificate": null, + "NumPartitions": 30, + "TaskThreadCount": 4, + "IoTAccessId": "1YMVZZkAkRArjxSD8457", + "IoTSecretKey": "0fd7afb8b0d04e6abc4fdfdac2190a79", + "IsSubscriber": true + }, "IoTDBOptions": { "UserName": "root", "Password": "Lixiao@1980", @@ -51,7 +67,7 @@ "AutomaticMonthFreezeTime": "03:30:00", "DefaultProtocolPlugin": "T37612012ProtocolPlugin", "VerifySignatureToken": "SIcPQnpMgaFDmNlIjNmzq5smshz7cKrh", - "DistributedMessage":2 + "DistributedMessage": 1 }, "Jwt": { "Audience": "JiShe.IoT", diff --git a/host/JiShe.IoT.HttpApi.Host/appsettings.Production.json b/host/JiShe.IoT.HttpApi.Host/appsettings.Production.json index dc3fa64..b93d0b1 100644 --- a/host/JiShe.IoT.HttpApi.Host/appsettings.Production.json +++ b/host/JiShe.IoT.HttpApi.Host/appsettings.Production.json @@ -50,6 +50,22 @@ "NumPartitions": 30, "TaskThreadCount": -1 }, + "Pulsar": { + "ServiceUrl": "pulsar+ssl://iot-north-mq.heclouds.com:6651", + "WebUrl": "http://localhost:8080", + "EnableFilter": true, + "EnableAuthorization": true, + "EnableIoTAuth": true, + "EnableTls": null, + "TlsCertificatePath": null, + "TlsPrivateKeyPath": null, + "ValidateServerCertificate": null, + "NumPartitions": 30, + "TaskThreadCount": 4, + "IoTAccessId": "your_project_access_id", + "IoTSecretKey": "your_project_secret_key", + "IsSubscriber": true + }, "IoTDBOptions": { "UserName": "root", "Password": "Lixiao@1980",