Browse Source

[fix]整理appsetings.json

master
贾荣国 3 years ago
parent
commit
8c217f054a
  1. 4
      WebApiService/src/Win_in.Sfs.Scp.WebApi.HttpApi.Host/Program.cs
  2. 2
      WebApiService/src/Win_in.Sfs.Scp.WebApi.HttpApi.Host/appsettings.Production.Development.json
  3. 37
      WebApiService/src/Win_in.Sfs.Scp.WebApi.HttpApi.Host/appsettings.Production.json
  4. 2
      WebApiService/src/Win_in.Sfs.Scp.WebApi.HttpApi.Host/appsettings.Production.secrets.json
  5. 9
      WebApiService/src/Win_in.Sfs.Scp.WebApi.HttpApi.Host/appsettings.json
  6. 2
      WebApiService/src/Win_in.Sfs.Scp.WebApi.Xml.Host/Program.cs
  7. 9
      WebApiService/src/Win_in.Sfs.Scp.WebApi.Xml.Host/appsettings.Production.Development.json
  8. 8
      WebApiService/src/Win_in.Sfs.Scp.WebApi.Xml.Host/appsettings.Production.json
  9. 2
      WebApiService/src/Win_in.Sfs.Scp.WebApi.Xml.Host/appsettings.json

4
WebApiService/src/Win_in.Sfs.Scp.WebApi.HttpApi.Host/Program.cs

@ -20,7 +20,7 @@ namespace Win_in.Sfs.Scp.WebApi
.MinimumLevel.Override("Microsoft", LogEventLevel.Information)
.MinimumLevel.Override("Microsoft.EntityFrameworkCore", LogEventLevel.Warning)
.Enrich.FromLogContext()
.WriteTo.Async(c => c.File("Logs/logs.txt"))
.WriteTo.Async(c => c.File("Logs/logs.txt",rollingInterval:RollingInterval.Day))
#if DEBUG
.WriteTo.Async(c => c.Console())
#endif
@ -34,7 +34,7 @@ namespace Win_in.Sfs.Scp.WebApi
}
catch (Exception ex)
{
Log.Fatal(ex, "Host terminated unexpectedly!");
Log.Fatal(ex, "Win_in.Sfs.Scp.WebApi.HttpApi.Host terminated unexpectedly!");
return 1;
}
finally

2
WebApiService/src/Win_in.Sfs.Scp.WebApi.HttpApi.Host/appsettings.Production.Development.json

@ -0,0 +1,2 @@
{
}

37
WebApiService/src/Win_in.Sfs.Scp.WebApi.HttpApi.Host/appsettings.Production.json

@ -0,0 +1,37 @@
{
"App": {
"SelfUrl": "https://scp.iacchina.net:9988",
"CorsOrigins": "https://scp.iacchina.net:9977,https://scp.iacchina.net:9988,https://localhost:9977,https://localhost:9988",
"RedirectAllowedUrls": "https://scp.iacchina.net:9977,https://scp.iacchina.net:9988"
},
"ConnectionStrings": {
"Default": "Server=127.0.0.1;Database=Scp_WebApi;User ID=sa;Password=Microsoft2008;connection timeout=600;",
"V1Scp": "Server=127.0.0.1;Database=Scp_V1;User ID=sa;Password=Microsoft2008;connection timeout=600;"
},
"AuthServer": {
"Authority": "https://scp.iacchina.net:9988",
"RequireHttpsMetadata": "false",
"SwaggerClientId": "WebApi_Swagger",
"SwaggerClientSecret": "1q2w3e*"
},
"IdentityServer": {
"Clients": {
"WebApi_Web": {
"ClientId": "WebApi_Web",
"ClientSecret": "1q2w3e*",
"RootUrl": "https://scp.iacchina.net:9988"
},
"WebApi_App": {
"ClientId": "WebApi_App",
"ClientSecret": "1q2w3e*",
"RootUrl": "https://scp.iacchina.net:9988"
},
"WebApi_Swagger": {
"ClientId": "WebApi_Swagger",
"ClientSecret": "1q2w3e*",
"RootUrl": "https://scp.iacchina.net:9988"
}
}
},
"AlwaysAllowAuthorization": false
}

2
WebApiService/src/Win_in.Sfs.Scp.WebApi.HttpApi.Host/appsettings.Production.secrets.json

@ -0,0 +1,2 @@
{
}

9
WebApiService/src/Win_in.Sfs.Scp.WebApi.HttpApi.Host/appsettings.json

@ -1,8 +1,8 @@
{
"App": {
"SelfUrl": "https://localhost:9988",
"CorsOrigins": "https://scp.iacchina.net:9977,https://localhost:9977,https://localhost:9988,https://scp.iacchina.net:9988",
"RedirectAllowedUrls": "http://localhost:4200,https://localhost:9988"
"CorsOrigins": "https://localhost:9977,https://localhost:9988",
"RedirectAllowedUrls": "https://localhost:9977,,https://localhost:9988"
},
"ConnectionStrings": {
"Default": "Server=127.0.0.1;Database=Scp_WebApi;User ID=sa;Password=Microsoft2008;connection timeout=600;",
@ -26,11 +26,6 @@
"ClientSecret": "1q2w3e*",
"RootUrl": "https://localhost:9988"
},
"WebApi_BlazorServerTiered": {
"ClientId": "WebApi_BlazorServerTiered",
"ClientSecret": "1q2w3e*",
"RootUrl": "https://localhost:9988"
},
"WebApi_Swagger": {
"ClientId": "WebApi_Swagger",
"ClientSecret": "1q2w3e*",

2
WebApiService/src/Win_in.Sfs.Scp.WebApi.Xml.Host/Program.cs

@ -21,7 +21,7 @@ namespace Win_in.Sfs.Scp.WebApi.XmlHost
}
catch (Exception ex)
{
Log.Fatal(ex, "Host terminated unexpectedly!");
Log.Fatal(ex, "Win_in.Sfs.Scp.WebApi.Xml.Host terminated unexpectedly!");
return 1;
}
finally

9
WebApiService/src/Win_in.Sfs.Scp.WebApi.Xml.Host/appsettings.Production.Development.json

@ -1,9 +0,0 @@
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
}
}
}

8
WebApiService/src/Win_in.Sfs.Scp.WebApi.Xml.Host/appsettings.Production.json

@ -13,8 +13,10 @@
"BaseUrl": "https://scp.iacchina.net:9988/"
}
},
"BasicAuthentication": {
"Username": "admin",
"Password": "admin"
"AuthServer": {
"Authority": "https://scp.iacchina.net:9988",
"RequireHttpsMetadata": "false",
"SwaggerClientId": "WebApi_Swagger",
"SwaggerClientSecret": "1q2w3e*"
}
}

2
WebApiService/src/Win_in.Sfs.Scp.WebApi.Xml.Host/appsettings.json

@ -10,7 +10,7 @@
"RemoteServices": {
"Default": {
"BaseUrl": "https://scp.iacchina.net:9988/"
"BaseUrl": "https://localhost:9988/"
}
},
"AuthServer": {

Loading…
Cancel
Save