Browse Source

Configured tenant management service

pull/3032/head
Halil İbrahim Kalkan 7 years ago
parent
commit
2c1aeb21b8
  1. 1
      samples/MicroserviceDemo/applications/AuthServer.Host/AuthServerDataSeeder.cs
  2. 6
      samples/MicroserviceDemo/microservices/TenantManagementService.Host/TenantManagementServiceHostModule.cs
  3. 8
      samples/MicroserviceDemo/microservices/TenantManagementService.Host/appsettings.Development.json
  4. 30
      samples/MicroserviceDemo/microservices/TenantManagementService.Host/appsettings.json

1
samples/MicroserviceDemo/applications/AuthServer.Host/AuthServerDataSeeder.cs

@ -57,6 +57,7 @@ namespace AuthServer.Host
}; };
await CreateApiResourceAsync("IdentityService", commonApiUserClaims); await CreateApiResourceAsync("IdentityService", commonApiUserClaims);
await CreateApiResourceAsync("TenantManagementService", commonApiUserClaims);
await CreateApiResourceAsync("BloggingService", commonApiUserClaims); await CreateApiResourceAsync("BloggingService", commonApiUserClaims);
await CreateApiResourceAsync("ProductService", commonApiUserClaims); await CreateApiResourceAsync("ProductService", commonApiUserClaims);
await CreateApiResourceAsync("InternalGateway", commonApiUserClaims); await CreateApiResourceAsync("InternalGateway", commonApiUserClaims);

6
samples/MicroserviceDemo/microservices/TenantManagementService.Host/TenantManagementServiceHostModule.cs

@ -50,7 +50,7 @@ namespace TenantManagementService.Host
context.Services.AddSwaggerGen(options => context.Services.AddSwaggerGen(options =>
{ {
options.SwaggerDoc("v1", new OpenApiInfo {Title = "Identity Service API", Version = "v1"}); options.SwaggerDoc("v1", new OpenApiInfo {Title = "Tenant Management Service API", Version = "v1"});
options.DocInclusionPredicate((docName, description) => true); options.DocInclusionPredicate((docName, description) => true);
options.CustomSchemaIds(type => type.FullName); options.CustomSchemaIds(type => type.FullName);
}); });
@ -73,7 +73,7 @@ namespace TenantManagementService.Host
Configure<AbpAuditingOptions>(options => Configure<AbpAuditingOptions>(options =>
{ {
options.IsEnabledForGetRequests = true; options.IsEnabledForGetRequests = true;
options.ApplicationName = "IdentityService"; options.ApplicationName = "TenantManagementService";
}); });
var redis = ConnectionMultiplexer.Connect(configuration["Redis:Configuration"]); var redis = ConnectionMultiplexer.Connect(configuration["Redis:Configuration"]);
@ -109,7 +109,7 @@ namespace TenantManagementService.Host
app.UseSwagger(); app.UseSwagger();
app.UseSwaggerUI(options => app.UseSwaggerUI(options =>
{ {
options.SwaggerEndpoint("/swagger/v1/swagger.json", "Identity Service API"); options.SwaggerEndpoint("/swagger/v1/swagger.json", "Tenant Management Service API");
}); });
app.UseAuditing(); app.UseAuditing();
app.UseMvcWithDefaultRouteAndArea(); app.UseMvcWithDefaultRouteAndArea();

8
samples/MicroserviceDemo/microservices/TenantManagementService.Host/appsettings.Development.json

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

30
samples/MicroserviceDemo/microservices/TenantManagementService.Host/appsettings.json

@ -1,10 +1,32 @@
{ {
"AuthServer": {
"Authority": "http://localhost:64999",
"ApiName": "TenantManagementService"
},
"ConnectionStrings": {
"Default": "Server=localhost;Database=MsDemo_Identity;Trusted_Connection=True;MultipleActiveResultSets=true"
},
"ElasticSearch": {
"Url": "http://localhost:9200"
},
"Redis": {
"Configuration": "127.0.0.1"
},
"RabbitMQ": {
"Connections": {
"Default": {
"HostName": "localhost"
}
},
"EventBus": {
"ClientName": "MsDemo_TenantManagementService",
"ExchangeName": "MsDemo"
}
},
"Logging": { "Logging": {
"LogLevel": { "LogLevel": {
"Default": "Information", "Default": "Warning"
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
} }
}, },
"AllowedHosts": "*" "AllowedHosts": "*"
} }
Loading…
Cancel
Save