Browse Source

更改redis端口

Lgx 4 years ago
parent
commit
1b4c3ee357
2 changed files with 22 additions and 2 deletions
  1. 1 1
      Member/MemberWeb/Commonss/Util.cs
  2. 21 1
      Member/MemberWeb/appsettings.json

+ 1 - 1
Member/MemberWeb/Commonss/Util.cs

@@ -40,7 +40,7 @@ namespace SupplierWeb.Commonss
             return obj;
         }
 
-        static string HOST = "http://192.168.50.32:9200/";
+        static string HOST = "http://192.168.50.41:9200/";
         public static string ElasticCall(string url, string method, string query)
         {
             HttpWebRequest myReq = (HttpWebRequest)WebRequest.Create(HOST + url);

+ 21 - 1
Member/MemberWeb/appsettings.json

@@ -17,5 +17,25 @@
     "MyConnectionString": "Data Source =192.168.50.32; Initial Catalog =MemberData; Persist Security Info = True; User ID =sa; Password =saljhy123!@#",
     "AllowedHosts": "*"
   },
-  "EsUrl": "http://192.168.50.32:9200/"
+  "EsUrl": "http://192.168.50.41:9200/",
+
+  // begin - spring cloud eureka settings
+  "spring": {
+    "application": {
+      "name": "client-member-service"
+    }
+  },
+  "eureka": {
+    "client": {
+      "serviceUrl": "http://127.0.0.1:8761/eureka/",
+      "validateCertificates": false
+    },
+    "instance": {
+      "port": 8004,
+      "preferIpAddress": true,
+      "instanceId": "client-member-service-container:57254"
+    }
+  },
+  // end - spring cloud eureka settings
+  "AllowedHosts": "*"
 }