Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
丁松杰
/
Pole
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
3806f429
authored
Feb 20, 2020
by
dingsongjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改 连接字符串 为 内网
parent
c6504035
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
16 deletions
samples/apis/Backet.Api/Startup.cs
samples/apis/Backet.Api/appsettings.json
samples/apis/Product.Api/appsettings.Development.json
samples/apis/Product.Api/appsettings.json
samples/apis/Backet.Api/Startup.cs
View file @
3806f429
...
...
@@ -34,6 +34,7 @@ namespace Backet.Api
option
.
Password
=
Configuration
[
"RabbitmqConfig:HostPassword"
];
option
.
UserName
=
Configuration
[
"RabbitmqConfig:HostUserName"
];
});
config
.
AddEntityFrameworkEventStorage
<
BacketDbContext
>();
});
services
.
ConfigureGrainStorageOptions
<
BacketDbContext
,
BacketGrain
,
Backet
.
Api
.
Domain
.
AggregatesModel
.
BacketAggregate
.
Backet
>(
...
...
@@ -46,9 +47,9 @@ namespace Backet.Api
}
// 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
();
}
...
...
samples/apis/Backet.Api/appsettings.json
View file @
3806f429
...
...
@@ -8,13 +8,13 @@
}
},
"postgres"
:
{
"write"
:
"Server=1
15.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=1
92.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"
,
"RabbitmqConfig"
:
{
"HostAddress"
:
"rabbitmq://192.168.0.
248
/"
,
"HostUserName"
:
"
comteck
"
,
"HostPassword"
:
"
comteck3030
"
"HostAddress"
:
"rabbitmq://192.168.0.
41
/"
,
"HostUserName"
:
"
test
"
,
"HostPassword"
:
"
test
"
}
//
"Kestrel"
:
{
//
"EndpointDefaults"
:
{
...
...
samples/apis/Product.Api/appsettings.Development.json
View file @
3806f429
...
...
@@ -7,13 +7,13 @@
"Grpc"
:
"Information"
}
},
"ServiceName"
:
"Product"
,
"postgres"
:
{
"write"
:
"Server=1
15.238.140.58;Port=5432;Username=postgres;Password=comteck2020!@#;Database=Pole-Produc
t;Enlist=True;Timeout=0;Command Timeout=600;Pooling=false;MinPoolSize=20;MaxPoolSize=500;"
"write"
:
"Server=1
92.168.0.41;Port=5432;Username=postgres;Password=comteck2020!@#;Database=Pole-Backe
t;Enlist=True;Timeout=0;Command Timeout=600;Pooling=false;MinPoolSize=20;MaxPoolSize=500;"
},
"ServiceName"
:
"Product"
,
"RabbitmqConfig"
:
{
"HostAddress"
:
"rabbitmq://192.168.0.
248
/"
,
"HostUserName"
:
"
comteck
"
,
"HostPassword"
:
"
comteck3030
"
"HostAddress"
:
"rabbitmq://192.168.0.
41
/"
,
"HostUserName"
:
"
test
"
,
"HostPassword"
:
"
test
"
}
}
samples/apis/Product.Api/appsettings.json
View file @
3806f429
...
...
@@ -8,13 +8,13 @@
}
},
"postgres"
:
{
"write"
:
"Server=192.168.0.
248;Port=5432;Username=postgres;Password=comteck2020!@#;Database=Pole_samples_Produc
t;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-Backe
t;Enlist=True;Timeout=0;Command Timeout=600;Pooling=false;MinPoolSize=20;MaxPoolSize=500;"
},
"ServiceName"
:
"
Produc
t"
,
"ServiceName"
:
"
Backe
t"
,
"RabbitmqConfig"
:
{
"HostAddress"
:
"rabbitmq://192.168.0.
248
/"
,
"HostUserName"
:
"
comteck
"
,
"HostPassword"
:
"
comteck3030
"
"HostAddress"
:
"rabbitmq://192.168.0.
41
/"
,
"HostUserName"
:
"
test
"
,
"HostPassword"
:
"
test
"
}
//
"Kestrel"
:
{
//
"EndpointDefaults"
:
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment