Compare commits
3 Commits
6be3d5373a
...
0d0e4675ad
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0d0e4675ad | ||
|
|
6ade388cd7 | ||
|
|
5f21002e4f |
@ -10,6 +10,10 @@ try
|
||||
{
|
||||
var builder = WebApplication.CreateBuilder(args);
|
||||
|
||||
builder.Logging.ClearProviders();
|
||||
builder.Logging.SetMinimumLevel(Microsoft.Extensions.Logging.LogLevel.Trace);
|
||||
builder.Host.UseNLog();
|
||||
|
||||
// Make sure to add the Ocelot configuration file
|
||||
var suffix = builder.Environment.IsDevelopment() ? ".Development" : "";
|
||||
builder.Configuration.AddJsonFile($"ocelot{suffix}.json");
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
"DownstreamHostAndPorts": [
|
||||
{
|
||||
"Host": "localhost",
|
||||
"Port": 7174
|
||||
"Port": 8088
|
||||
}
|
||||
],
|
||||
"UpstreamPathTemplate": "/swagger/{route}",
|
||||
@ -23,7 +23,7 @@
|
||||
"DownstreamHostAndPorts": [
|
||||
{
|
||||
"Host": "localhost",
|
||||
"Port": 7174
|
||||
"Port": 8088
|
||||
}
|
||||
],
|
||||
"UpstreamPathTemplate": "/swagger/{route1}/{route2}",
|
||||
@ -40,7 +40,7 @@
|
||||
"DownstreamHostAndPorts": [
|
||||
{
|
||||
"Host": "localhost",
|
||||
"Port": 7174
|
||||
"Port": 8088
|
||||
}
|
||||
],
|
||||
"UpstreamPathTemplate": "/scalar",
|
||||
@ -57,7 +57,7 @@
|
||||
"DownstreamHostAndPorts": [
|
||||
{
|
||||
"Host": "localhost",
|
||||
"Port": 7174
|
||||
"Port": 8088
|
||||
}
|
||||
],
|
||||
"UpstreamPathTemplate": "/scalar/{route}",
|
||||
@ -74,7 +74,7 @@
|
||||
"DownstreamHostAndPorts": [
|
||||
{
|
||||
"Host": "localhost",
|
||||
"Port": 7174
|
||||
"Port": 8088
|
||||
}
|
||||
],
|
||||
"UpstreamPathTemplate": "/scalar/{route1}/{route2}",
|
||||
@ -127,7 +127,7 @@
|
||||
"DownstreamHostAndPorts": [
|
||||
{
|
||||
"Host": "localhost",
|
||||
"Port": 7174
|
||||
"Port": 8088
|
||||
}
|
||||
],
|
||||
"UpstreamPathTemplate": "/api/{route}",
|
||||
@ -144,7 +144,7 @@
|
||||
"DownstreamHostAndPorts": [
|
||||
{
|
||||
"Host": "localhost",
|
||||
"Port": 7174
|
||||
"Port": 8088
|
||||
}
|
||||
],
|
||||
"UpstreamPathTemplate": "/api/{route}{id}",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user