Commit 3806f429 by dingsongjie

修改 连接字符串 为 内网

parent c6504035
...@@ -34,6 +34,7 @@ namespace Backet.Api ...@@ -34,6 +34,7 @@ namespace Backet.Api
option.Password = Configuration["RabbitmqConfig:HostPassword"]; option.Password = Configuration["RabbitmqConfig:HostPassword"];
option.UserName = Configuration["RabbitmqConfig:HostUserName"]; option.UserName = Configuration["RabbitmqConfig:HostUserName"];
}); });
config.AddEntityFrameworkEventStorage<BacketDbContext>();
}); });
services.ConfigureGrainStorageOptions<BacketDbContext, BacketGrain, Backet.Api.Domain.AggregatesModel.BacketAggregate.Backet>( services.ConfigureGrainStorageOptions<BacketDbContext, BacketGrain, Backet.Api.Domain.AggregatesModel.BacketAggregate.Backet>(
...@@ -46,9 +47,9 @@ namespace Backet.Api ...@@ -46,9 +47,9 @@ namespace Backet.Api
} }
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
public void Configure(IApplicationBuilder app, IWebHostEnvironment env) public void Configure(IApplicationBuilder app)
{ {
if (env.IsDevelopment()) if (Environment.IsDevelopment())
{ {
app.UseDeveloperExceptionPage(); app.UseDeveloperExceptionPage();
} }
......
...@@ -8,13 +8,13 @@ ...@@ -8,13 +8,13 @@
} }
}, },
"postgres": { "postgres": {
"write": "Server=115.238.140.58;Port=5432;Username=postgres;Password=comteck2020!@#;Database=Pole-Backet;Enlist=True;Timeout=0;Command Timeout=600;Pooling=false;MinPoolSize=20;MaxPoolSize=500;" "write": "Server=192.168.0.41;Port=5432;Username=postgres;Password=comteck2020!@#;Database=Pole-Backet;Enlist=True;Timeout=0;Command Timeout=600;Pooling=false;MinPoolSize=20;MaxPoolSize=500;"
}, },
"ServiceName": "Backet", "ServiceName": "Backet",
"RabbitmqConfig": { "RabbitmqConfig": {
"HostAddress": "rabbitmq://192.168.0.248/", "HostAddress": "rabbitmq://192.168.0.41/",
"HostUserName": "comteck", "HostUserName": "test",
"HostPassword": "comteck3030" "HostPassword": "test"
} }
//"Kestrel": { //"Kestrel": {
// "EndpointDefaults": { // "EndpointDefaults": {
......
...@@ -7,13 +7,13 @@ ...@@ -7,13 +7,13 @@
"Grpc": "Information" "Grpc": "Information"
} }
}, },
"ServiceName": "Product",
"postgres": { "postgres": {
"write": "Server=115.238.140.58;Port=5432;Username=postgres;Password=comteck2020!@#;Database=Pole-Product;Enlist=True;Timeout=0;Command Timeout=600;Pooling=false;MinPoolSize=20;MaxPoolSize=500;" "write": "Server=192.168.0.41;Port=5432;Username=postgres;Password=comteck2020!@#;Database=Pole-Backet;Enlist=True;Timeout=0;Command Timeout=600;Pooling=false;MinPoolSize=20;MaxPoolSize=500;"
}, },
"ServiceName": "Product",
"RabbitmqConfig": { "RabbitmqConfig": {
"HostAddress": "rabbitmq://192.168.0.248/", "HostAddress": "rabbitmq://192.168.0.41/",
"HostUserName": "comteck", "HostUserName": "test",
"HostPassword": "comteck3030" "HostPassword": "test"
} }
} }
...@@ -8,13 +8,13 @@ ...@@ -8,13 +8,13 @@
} }
}, },
"postgres": { "postgres": {
"write": "Server=192.168.0.248;Port=5432;Username=postgres;Password=comteck2020!@#;Database=Pole_samples_Product;Enlist=True;Timeout=0;Command Timeout=600;Pooling=false;MinPoolSize=20;MaxPoolSize=500;" "write": "Server=192.168.0.41;Port=5432;Username=postgres;Password=comteck2020!@#;Database=Pole-Backet;Enlist=True;Timeout=0;Command Timeout=600;Pooling=false;MinPoolSize=20;MaxPoolSize=500;"
}, },
"ServiceName": "Product", "ServiceName": "Backet",
"RabbitmqConfig": { "RabbitmqConfig": {
"HostAddress": "rabbitmq://192.168.0.248/", "HostAddress": "rabbitmq://192.168.0.41/",
"HostUserName": "comteck", "HostUserName": "test",
"HostPassword": "comteck3030" "HostPassword": "test"
} }
//"Kestrel": { //"Kestrel": {
// "EndpointDefaults": { // "EndpointDefaults": {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment