Browse Source
Merge pull request #634 from colinin/upt-5.3.2
fix: ids admin need add self url options
pull/645/head
yx lin
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with
12 additions and
0 deletions
-
aspnet-core/services/LY.MicroService.identityServer.HttpApi.Host/IdentityServerHttpApiHostModule.Configure.cs
-
aspnet-core/services/LY.MicroService.identityServer.HttpApi.Host/IdentityServerHttpApiHostModule.cs
-
aspnet-core/services/LY.MicroService.identityServer.HttpApi.Host/appsettings.Development.json
|
|
|
@ -31,6 +31,7 @@ using Volo.Abp.Localization; |
|
|
|
using Volo.Abp.MultiTenancy; |
|
|
|
using Volo.Abp.PermissionManagement; |
|
|
|
using Volo.Abp.Threading; |
|
|
|
using Volo.Abp.UI.Navigation.Urls; |
|
|
|
using Volo.Abp.VirtualFileSystem; |
|
|
|
|
|
|
|
namespace LY.MicroService.IdentityServer; |
|
|
|
@ -160,6 +161,15 @@ public partial class IdentityServerHttpApiHostModule |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
private void ConfigureUrls(IConfiguration configuration) |
|
|
|
{ |
|
|
|
Configure<AppUrlOptions>(options => |
|
|
|
{ |
|
|
|
options.Applications["MVC"].RootUrl = configuration["App:SelfUrl"]; |
|
|
|
options.Applications["VUE"].RootUrl = configuration["App:VueUrl"]; |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
private void ConfigureCaching(IConfiguration configuration) |
|
|
|
{ |
|
|
|
Configure<AbpDistributedCacheOptions>(options => |
|
|
|
|
|
|
|
@ -81,6 +81,7 @@ public partial class IdentityServerHttpApiHostModule : AbpModule |
|
|
|
ConfigreExceptionHandling(); |
|
|
|
ConfigureVirtualFileSystem(); |
|
|
|
ConfigurePermissionManagement(); |
|
|
|
ConfigureUrls(configuration); |
|
|
|
ConfigureCaching(configuration); |
|
|
|
ConfigureAuditing(configuration); |
|
|
|
ConfigureSwagger(context.Services); |
|
|
|
|
|
|
|
@ -10,6 +10,7 @@ |
|
|
|
"App": { |
|
|
|
"TrackingEntitiesChanged": true, |
|
|
|
"SelfUrl": "http://127.0.0.1:30015/", |
|
|
|
"VueUrl": "http://127.0.0.1:3100/", |
|
|
|
"CorsOrigins": "http://127.0.0.1:3100" |
|
|
|
}, |
|
|
|
"ConnectionStrings": { |
|
|
|
|