Skip to content

Commit

Permalink
Merge pull request #872 from leehom0123/master
Browse files Browse the repository at this point in the history
docker配置修改及增加showPii配置
  • Loading branch information
colinin authored Sep 12, 2023
2 parents 674d463 + afc41d8 commit 099d2a8
Show file tree
Hide file tree
Showing 31 changed files with 396 additions and 132 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,10 @@
using LY.MicroService.BackendAdmin.EntityFrameworkCore;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Microsoft.IdentityModel.Logging;
using Volo.Abp;
using Volo.Abp.AspNetCore.Authentication.JwtBearer;
using Volo.Abp.AspNetCore.Mvc.UI.MultiTenancy;
Expand Down Expand Up @@ -105,6 +107,9 @@ public override void PreConfigureServices(ServiceConfigurationContext context)
{
var configuration = context.Services.GetConfiguration();

var showPii = configuration.GetValue<bool>("App:ShowPii");
IdentityModelEventSource.ShowPII = showPii;

PreConfigureApp();
PreConfigureFeature();
PreConfigureCAP(configuration);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"127.0.0.1"
]
},
"CorsOrigins": "http://127.0.0.1:3100"
"CorsOrigins": "http://127.0.0.1:3100",
"ShowPii": true
},
"Auditing": {
"AllEntitiesSelector": true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@
using LINGYUN.Abp.Serilog.Enrichers.UniqueId;
using LY.MicroService.LocalizationManagement.EntityFrameworkCore;
using Microsoft.AspNetCore.Builder;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Microsoft.IdentityModel.Logging;
using Volo.Abp;
using Volo.Abp.AspNetCore.Authentication.JwtBearer;
using Volo.Abp.AspNetCore.MultiTenancy;
Expand Down Expand Up @@ -63,6 +65,10 @@ public override void PreConfigureServices(ServiceConfigurationContext context)
{
var configuration = context.Services.GetConfiguration();

var showPii = configuration.GetValue<bool>("App:ShowPii");
IdentityModelEventSource.ShowPII = showPii;


PreConfigureApp();
PreConfigureFeature();
PreConfigureCAP(configuration);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"tag": "Localization"
},
"App": {
"CorsOrigins": "http://127.0.0.1:3100"
"CorsOrigins": "http://127.0.0.1:3100",
"ShowPii": true
},
"Auditing": {
"AllEntitiesSelector": true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,11 @@
using LY.MicroService.PlatformManagement.BackgroundWorkers;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Options;
using Microsoft.IdentityModel.Logging;
using System.Threading.Tasks;
using Volo.Abp;
using Volo.Abp.AspNetCore.Authentication.JwtBearer;
Expand Down Expand Up @@ -97,6 +99,10 @@ public override void PreConfigureServices(ServiceConfigurationContext context)
{
var configuration = context.Services.GetConfiguration();

var showPii = configuration.GetValue<bool>("App:ShowPii");
IdentityModelEventSource.ShowPII = showPii;


PreConfigureApp();
PreConfigureFeature();
PreConfigureCAP(configuration);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
"127.0.0.1"
]
},
"CorsOrigins": "http://127.0.0.1:3100"
"CorsOrigins": "http://127.0.0.1:3100",
"ShowPii": true
},
"Auditing": {
"AllEntitiesSelector": true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,10 @@
using LY.MicroService.RealtimeMessage.EntityFrameworkCore;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Microsoft.IdentityModel.Logging;
using Volo.Abp;
using Volo.Abp.AspNetCore.Authentication.JwtBearer;
using Volo.Abp.AspNetCore.MultiTenancy;
Expand Down Expand Up @@ -109,6 +111,10 @@ public override void PreConfigureServices(ServiceConfigurationContext context)
{
var configuration = context.Services.GetConfiguration();

var showPii = configuration.GetValue<bool>("App:ShowPii");
IdentityModelEventSource.ShowPII = showPii;


PreConfigureApp();
PreConfigureFeature();
PreConfigureCAP(configuration);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"KnownProxies": [
"127.0.0.1"
]
}
},
"ShowPii": true
},
"Auditing": {
"AllEntitiesSelector": true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,10 @@
using LY.MicroService.TaskManagement.EntityFrameworkCore;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Microsoft.IdentityModel.Logging;
using Volo.Abp;
using Volo.Abp.AspNetCore.Authentication.JwtBearer;
using Volo.Abp.AspNetCore.MultiTenancy;
Expand Down Expand Up @@ -84,6 +86,10 @@ public override void PreConfigureServices(ServiceConfigurationContext context)
{
var configuration = context.Services.GetConfiguration();

var showPii = configuration.GetValue<bool>("App:ShowPii");
IdentityModelEventSource.ShowPII = showPii;


PreConfigureApp();
PreConfigureFeature();
PreConfigureCAP(configuration);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,13 @@
"env": "DEV",
"appId": "LINGYUN.Abp.TaskManagement",
"secret": "1q2w3E*",
"nodes": "http://127.0.0.1:15000",
"nodes": "http://127.0.0.1:5000",
"name": "LINGYUN.Abp.TaskManagement",
"tag": "LINGYUN.Abp.TaskManagement"
},
"App": {
"ShowPii": true
},
"Auditing": {
"AllEntitiesSelector": true
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,10 @@
using LY.MicroService.WebhooksManagement.EntityFrameworkCore;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Microsoft.IdentityModel.Logging;
using Volo.Abp;
using Volo.Abp.AspNetCore.Authentication.JwtBearer;
using Volo.Abp.AspNetCore.MultiTenancy;
Expand Down Expand Up @@ -84,6 +86,10 @@ public override void PreConfigureServices(ServiceConfigurationContext context)
{
var configuration = context.Services.GetConfiguration();

var showPii = configuration.GetValue<bool>("App:ShowPii");
IdentityModelEventSource.ShowPII = showPii;


PreConfigureApp();
PreConfigureFeature();
PreConfigureCAP(configuration);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,13 @@
"env": "DEV",
"appId": "LINGYUN.Abp.WebhooksManagement",
"secret": "1q2w3E*",
"nodes": "http://127.0.0.1:15000",
"nodes": "http://127.0.0.1:5000",
"name": "LINGYUN.Abp.WebhooksManagement",
"tag": "LINGYUN.Abp.WebhooksManagement"
},
"App": {
"ShowPii": true
},
"Auditing": {
"AllEntitiesSelector": true
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,10 @@
using LINGYUN.Abp.TaskManagement.EntityFrameworkCore;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Microsoft.IdentityModel.Logging;
using Volo.Abp;
using Volo.Abp.AspNetCore.Authentication.JwtBearer;
using Volo.Abp.AspNetCore.MultiTenancy;
Expand Down Expand Up @@ -89,6 +91,10 @@ public override void PreConfigureServices(ServiceConfigurationContext context)
{
var configuration = context.Services.GetConfiguration();

var showPii = configuration.GetValue<bool>("App:ShowPii");
IdentityModelEventSource.ShowPII = showPii;


PreConfigureApp();
PreConfigureFeature();
PreConfigureCAP(configuration);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@
"env": "DEV",
"appId": "LINGYUN.Abp.Workflow",
"secret": "1q2w3E*",
"nodes": "http://127.0.0.1:15000",
"nodes": "http://127.0.0.1:5000",
"name": "LINGYUN.Abp.Workflow",
"tag": "LINGYUN.Abp.Workflow"
},
"App": {
"CorsOrigins": "http://127.0.0.1:3100"
"CorsOrigins": "http://127.0.0.1:3100",
"ShowPii": true
},
"Auditing": {
"AllEntitiesSelector": true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ EXPOSE 80/tcp
VOLUME [ "./app/Logs" ]
VOLUME [ "./app/Modules" ]

ENTRYPOINT ["dotnet", "LY.MicroService.IdentityServer.HttpApi.Host.dll"]
ENTRYPOINT ["dotnet", "LY.MicroService.identityServer.HttpApi.Host.dll"]
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@
using LINGYUN.Abp.Sms.Aliyun;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Microsoft.IdentityModel.Logging;
using Volo.Abp;
using Volo.Abp.AspNetCore.Authentication.JwtBearer;
using Volo.Abp.AspNetCore.MultiTenancy;
Expand Down Expand Up @@ -70,6 +72,10 @@ public override void PreConfigureServices(ServiceConfigurationContext context)
{
var configuration = context.Services.GetConfiguration();

var showPii = configuration.GetValue<bool>("App:ShowPii");
IdentityModelEventSource.ShowPII = showPii;


PreConfigureApp();
PreConfigureFeature();
PreConfigureCAP(configuration);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Microsoft.IdentityModel.Logging;
using Serilog;
using System;
using System.IO;
Expand All @@ -21,6 +22,7 @@ public async static Task<int> Main(string[] args)
Console.Title = "IdentityServer.HttpApi.Host";
Log.Information("Starting IdentityServer.HttpApi.Host.");


var builder = WebApplication.CreateBuilder(args);
builder.Host.AddAppSettingsSecretsJson()
.UseAutofac()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"App": {
"SelfUrl": "http://127.0.0.1:30015/",
"StsUrl": "http://127.0.0.1:44385/",
"CorsOrigins": "http://127.0.0.1:3100"
"CorsOrigins": "http://127.0.0.1:3100",
"ShowPii": true
},
"Auditing": {
"AllEntitiesSelector": true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,10 @@
using LY.MicroService.IdentityServer.EntityFrameworkCore;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Microsoft.IdentityModel.Logging;
using Volo.Abp;
using Volo.Abp.Account.Web;
using Volo.Abp.AspNetCore.Authentication.JwtBearer;
Expand Down Expand Up @@ -90,6 +92,10 @@ public override void PreConfigureServices(ServiceConfigurationContext context)
var configuration = context.Services.GetConfiguration();
var hostingEnvironment = context.Services.GetHostingEnvironment();

var showPii = configuration.GetValue<bool>("App:ShowPii");
IdentityModelEventSource.ShowPII = showPii;


PreConfigureApp();
PreConfigureFeature();
PreConfigureCAP(configuration);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
}
}
}
}
},
"ShowPii": true
},
"Auditing": {
"AllEntitiesSelector": true
Expand Down
Loading

0 comments on commit 099d2a8

Please sign in to comment.