Skip to content

Commit

Permalink
Feat/stack config (#530)
Browse files Browse the repository at this point in the history
* refactor:rename ElasticNodes -> Nodes

* feat:modify commont
  • Loading branch information
MayueCif authored Mar 29, 2023
1 parent 87f0686 commit a3fad09
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace Masa.BuildingBlocks.StackSdks.Config.Models;

public class ElasticModel
{
public List<string> ElasticNodes { get; set; }
public List<string> Nodes { get; set; }

public string Index { get; set; }
}
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,6 @@ public void TestGetEsModel()
{
var es = _stackConfig.ElasticModel;

Assert.IsTrue(es is not null && es.ElasticNodes.Any());
Assert.IsTrue(es is not null && es.Nodes.Any());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"CLUSTER": "Default",
"CONNECTIONSTRING": "{\"Server\": \"masastack-sqlserver.masastack\", \"port\": 1433,\"Database\":\"\",\"UserId\": \"sa\",\"Password\":\"p@ssw0rd\"}",
"DOMAIN_NAME": "masastack.com",
"ELASTIC": "{\"ElasticNodes\": [\"masastack-es.masastack\"],\"Index\": \"user_dev\"}",
"ELASTIC": "{\"Nodes\": [\"masastack-es.masastack\"],\"Index\": \"user_dev\"}",
"IS_DEMO": "true",
"MASA_SERVER": "{\"pm\":{\"server\":\"masa-pm-server\",\"ui\":\"masa-pm-ui\"},\"dcc\":{\"server\":\"masa-dcc-server\",\"ui\":\"masa-dcc-ui\"},\"auth\":{\"server\":\"masa-auth-server\",\"ui\":\"masa-auth-ui\",\"sso\":\"masa-auth-sso\"},\"mc\":{\"server\":\"masa-mc-server\",\"ui\":\"masa-mc-web\"},\"scheduler\":{\"server\":\"masa-scheduler-server\",\"ui\":\"masa-scheduler-ui\",\"worker\":\"masa-scheduler-worker\"},\"tsc\":{\"server\":\"masa-tsc-server\",\"ui\":\"masa-tsc-web\"},\"alert\":{\"server\":\"masa-alert-server\",\"ui\":\"masa-alert-web\"}}",
"MASA_UI": "{\"pm\":{\"server\":\"masa-pm-server\",\"ui\":\"masa-pm-ui-demo\"},\"dcc\":{\"server\":\"masa-dcc-server\",\"ui\":\"masa-dcc-ui-demo\"},\"auth\":{\"server\":\"masa-auth-server\",\"ui\":\"masa-auth-ui-demo\",\"sso\":\"masa-auth-sso-demo\"},\"mc\":{\"server\":\"masa-mc-server\",\"ui\":\"masa-mc-web-demo\"},\"scheduler\":{\"server\":\"masa-scheduler-server\",\"ui\":\"masa-scheduler-ui-demo\",\"worker\":\"masa-scheduler-worker\"},\"tsc\":{\"server\":\"masa-tsc-server\",\"ui\":\"masa-tsc-web-demo\"},\"alert\":{\"server\":\"masa-alert-server\",\"ui\":\"masa-alert-web-demo\"}}",
Expand Down

0 comments on commit a3fad09

Please sign in to comment.