mirror of https://github.com/abpframework/abp.git
160 changed files with 2377 additions and 798 deletions
@ -0,0 +1,20 @@ |
|||
using System; |
|||
using System.Linq; |
|||
using Volo.Utils.SolutionTemplating.Files; |
|||
|
|||
namespace Volo.Utils.SolutionTemplating.Building |
|||
{ |
|||
public static class ProjectBuildContextExtensions |
|||
{ |
|||
public static FileEntry GetFile(this ProjectBuildContext context, string filePath) |
|||
{ |
|||
var file = context.Files.FirstOrDefault(f => f.Name == filePath); |
|||
if (file == null) |
|||
{ |
|||
throw new ApplicationException("Could not find file: " + filePath); |
|||
} |
|||
|
|||
return file; |
|||
} |
|||
} |
|||
} |
|||
@ -1,22 +1,7 @@ |
|||
using System; |
|||
using System.Linq; |
|||
using Volo.Utils.SolutionTemplating.Files; |
|||
|
|||
namespace Volo.Utils.SolutionTemplating.Building |
|||
namespace Volo.Utils.SolutionTemplating.Building |
|||
{ |
|||
public abstract class ProjectBuildPipelineStep |
|||
{ |
|||
public abstract void Execute(ProjectBuildContext context); |
|||
|
|||
protected FileEntry GetFile(ProjectBuildContext context, string filePath) |
|||
{ |
|||
var file = context.Files.FirstOrDefault(f => f.Name == filePath); |
|||
if (file == null) |
|||
{ |
|||
throw new ApplicationException("Could not find file: " + filePath); |
|||
} |
|||
|
|||
return file; |
|||
} |
|||
} |
|||
} |
|||
@ -0,0 +1,23 @@ |
|||
using System.Collections.Generic; |
|||
using System.Threading.Tasks; |
|||
using Volo.Abp.DependencyInjection; |
|||
using Volo.Abp.Localization; |
|||
|
|||
namespace Volo.Abp.AspNetCore.Mvc.Client |
|||
{ |
|||
public class RemoteLanguageProvider : ILanguageProvider, ITransientDependency |
|||
{ |
|||
protected ICachedApplicationConfigurationClient ConfigurationClient { get; } |
|||
|
|||
public RemoteLanguageProvider(ICachedApplicationConfigurationClient configurationClient) |
|||
{ |
|||
ConfigurationClient = configurationClient; |
|||
} |
|||
|
|||
public async Task<IReadOnlyList<LanguageInfo>> GetLanguagesAsync() |
|||
{ |
|||
var configuration = await ConfigurationClient.GetAsync(); |
|||
return configuration.Localization.Languages; |
|||
} |
|||
} |
|||
} |
|||
@ -1,9 +1,16 @@ |
|||
using System.Collections.Generic; |
|||
using System; |
|||
using System.Collections.Generic; |
|||
|
|||
namespace Volo.Abp.AspNetCore.Mvc.ApplicationConfigurations |
|||
{ |
|||
[Serializable] |
|||
public class ApplicationFeatureConfigurationDto |
|||
{ |
|||
public Dictionary<string, string> Values { get; set; } |
|||
|
|||
public ApplicationFeatureConfigurationDto() |
|||
{ |
|||
Values = new Dictionary<string, string>(); |
|||
} |
|||
} |
|||
} |
|||
@ -1,16 +1,21 @@ |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using Volo.Abp.Localization; |
|||
|
|||
namespace Volo.Abp.AspNetCore.Mvc.ApplicationConfigurations |
|||
{ |
|||
[Serializable] |
|||
public class ApplicationLocalizationConfigurationDto |
|||
{ |
|||
//TODO: Rename to Texts?
|
|||
public Dictionary<string, Dictionary<string, string>> Values { get; set; } |
|||
|
|||
public List<LanguageInfo> Languages { get; set; } |
|||
|
|||
public ApplicationLocalizationConfigurationDto() |
|||
{ |
|||
Values = new Dictionary<string, Dictionary<string, string>>(); |
|||
Languages = new List<LanguageInfo>(); |
|||
} |
|||
} |
|||
} |
|||
@ -0,0 +1,58 @@ |
|||
using System.Collections.Generic; |
|||
using System.Reflection; |
|||
using JetBrains.Annotations; |
|||
using Microsoft.Extensions.Localization; |
|||
using Volo.Abp.DynamicProxy; |
|||
using Volo.Abp.Reflection; |
|||
|
|||
namespace Volo.Abp.Localization |
|||
{ |
|||
public static class AbpStringLocalizerExtensions |
|||
{ |
|||
[NotNull] |
|||
public static IStringLocalizer GetInternalLocalizer( |
|||
[NotNull] this IStringLocalizer stringLocalizer) |
|||
{ |
|||
Check.NotNull(stringLocalizer, nameof(stringLocalizer)); |
|||
|
|||
var localizerType = stringLocalizer.GetType(); |
|||
if (!ReflectionHelper.IsAssignableToGenericType(localizerType, typeof(StringLocalizer<>))) |
|||
{ |
|||
return stringLocalizer; |
|||
} |
|||
|
|||
var localizerField = localizerType |
|||
.GetField( |
|||
"_localizer", |
|||
BindingFlags.Instance | |
|||
BindingFlags.NonPublic |
|||
); |
|||
|
|||
if (localizerField == null) |
|||
{ |
|||
throw new AbpException($"Could not find the _localizer field inside the {typeof(StringLocalizer<>).FullName} class. Probably its name has changed. Please report this issue to the ABP framework."); |
|||
} |
|||
|
|||
return localizerField.GetValue(stringLocalizer) as IStringLocalizer; |
|||
} |
|||
|
|||
public static IEnumerable<LocalizedString> GetAllStrings( |
|||
this IStringLocalizer stringLocalizer, |
|||
bool includeParentCultures, |
|||
bool includeBaseLocalizers) |
|||
{ |
|||
var internalLocalizer = (ProxyHelper.UnProxy(stringLocalizer) as IStringLocalizer).GetInternalLocalizer(); |
|||
if (internalLocalizer is IStringLocalizerSupportsInheritance stringLocalizerSupportsInheritance) |
|||
{ |
|||
return stringLocalizerSupportsInheritance.GetAllStrings( |
|||
includeParentCultures, |
|||
includeBaseLocalizers |
|||
); |
|||
} |
|||
|
|||
return stringLocalizer.GetAllStrings( |
|||
includeParentCultures |
|||
); |
|||
} |
|||
} |
|||
} |
|||
@ -0,0 +1,8 @@ |
|||
namespace Volo.Abp.Localization |
|||
{ |
|||
[LocalizationResourceName("Default")] |
|||
public class DefaultResource |
|||
{ |
|||
|
|||
} |
|||
} |
|||
@ -0,0 +1,10 @@ |
|||
using System.Collections.Generic; |
|||
using Microsoft.Extensions.Localization; |
|||
|
|||
namespace Volo.Abp.Localization |
|||
{ |
|||
public interface IStringLocalizerSupportsInheritance |
|||
{ |
|||
IEnumerable<LocalizedString> GetAllStrings(bool includeParentCultures, bool includeBaseLocalizers); |
|||
} |
|||
} |
|||
@ -1,10 +1,32 @@ |
|||
using Volo.Abp.Modularity; |
|||
using Volo.Abp.Localization; |
|||
using Volo.Abp.Modularity; |
|||
using Volo.Abp.Ui.Navigation; |
|||
using Volo.Abp.Ui.Navigation.Localization.Resource; |
|||
using Volo.Abp.VirtualFileSystem; |
|||
|
|||
namespace Volo.Abp.UI.Navigation |
|||
{ |
|||
[DependsOn(typeof(AbpUiModule))] |
|||
public class AbpUiNavigationModule : AbpModule |
|||
{ |
|||
public override void ConfigureServices(ServiceConfigurationContext context) |
|||
{ |
|||
Configure<VirtualFileSystemOptions>(options => |
|||
{ |
|||
options.FileSets.AddEmbedded<AbpUiNavigationModule>(); |
|||
}); |
|||
|
|||
Configure<AbpLocalizationOptions>(options => |
|||
{ |
|||
options.Resources |
|||
.Add<AbpUiNavigationResource>("en") |
|||
.AddVirtualJson("/Volo/Abp/Ui/Navigation/Localization/Resource"); |
|||
}); |
|||
|
|||
Configure<NavigationOptions>(options => |
|||
{ |
|||
options.MenuContributors.Add(new DefaultMenuContributor()); |
|||
}); |
|||
} |
|||
} |
|||
} |
|||
|
|||
@ -0,0 +1,59 @@ |
|||
using JetBrains.Annotations; |
|||
using System.Linq; |
|||
using Volo.Abp.Ui.Navigation; |
|||
|
|||
namespace Volo.Abp.UI.Navigation |
|||
{ |
|||
public static class ApplicationMenuExtensions |
|||
{ |
|||
[NotNull] |
|||
public static ApplicationMenuItem GetAdministration( |
|||
[NotNull] this ApplicationMenu applicationMenu) |
|||
{ |
|||
return applicationMenu.GetMenuItem( |
|||
DefaultMenuNames.Application.Main.Administration |
|||
); |
|||
} |
|||
|
|||
[NotNull] |
|||
public static ApplicationMenuItem GetMenuItem( |
|||
[NotNull] this IHasMenuItems menuWithItems, |
|||
string menuItemName) |
|||
{ |
|||
var menuItem = menuWithItems.GetMenuItemOrNull(menuItemName); |
|||
if (menuItem == null) |
|||
{ |
|||
throw new AbpException($"Could not find a menu item with given name: {menuItemName}"); |
|||
} |
|||
|
|||
return menuItem; |
|||
} |
|||
|
|||
[CanBeNull] |
|||
public static ApplicationMenuItem GetMenuItemOrNull( |
|||
[NotNull] this IHasMenuItems menuWithItems, |
|||
string menuItemName) |
|||
{ |
|||
Check.NotNull(menuWithItems, nameof(menuWithItems)); |
|||
|
|||
return menuWithItems.Items.FirstOrDefault(mi => mi.Name == menuItemName); |
|||
} |
|||
|
|||
[NotNull] |
|||
public static IHasMenuItems SetSubItemOrder( |
|||
[NotNull] this IHasMenuItems menuWithItems, |
|||
string menuItemName, |
|||
int order) |
|||
{ |
|||
Check.NotNull(menuWithItems, nameof(menuWithItems)); |
|||
|
|||
var menuItem = menuWithItems.GetMenuItemOrNull(menuItemName); |
|||
if (menuItem != null) |
|||
{ |
|||
menuItem.Order = order; |
|||
} |
|||
|
|||
return menuWithItems; |
|||
} |
|||
} |
|||
} |
|||
@ -0,0 +1,46 @@ |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Linq; |
|||
using Volo.Abp.UI.Navigation; |
|||
|
|||
namespace Volo.Abp.Ui.Navigation |
|||
{ |
|||
public class ApplicationMenuItemList : List<ApplicationMenuItem> |
|||
{ |
|||
public ApplicationMenuItemList() |
|||
{ |
|||
|
|||
} |
|||
|
|||
public ApplicationMenuItemList(int capacity) |
|||
: base(capacity) |
|||
{ |
|||
|
|||
} |
|||
|
|||
public ApplicationMenuItemList(IEnumerable<ApplicationMenuItem> collection) |
|||
: base(collection) |
|||
{ |
|||
|
|||
} |
|||
|
|||
public void Normalize() |
|||
{ |
|||
RemoveEmptyItems(); |
|||
Order(); |
|||
} |
|||
|
|||
private void RemoveEmptyItems() |
|||
{ |
|||
RemoveAll(item => item.IsLeaf && item.Url.IsNullOrEmpty()); |
|||
} |
|||
|
|||
private void Order() |
|||
{ |
|||
//TODO: Is there any way that is more performant?
|
|||
var orderedItems = this.OrderBy(item => item.Order).ToArray(); |
|||
Clear(); |
|||
AddRange(orderedItems); |
|||
} |
|||
} |
|||
} |
|||
@ -0,0 +1,34 @@ |
|||
using Microsoft.Extensions.DependencyInjection; |
|||
using Microsoft.Extensions.Localization; |
|||
using System.Threading.Tasks; |
|||
using Volo.Abp.Ui.Navigation.Localization.Resource; |
|||
using Volo.Abp.UI.Navigation; |
|||
|
|||
namespace Volo.Abp.Ui.Navigation |
|||
{ |
|||
public class DefaultMenuContributor : IMenuContributor |
|||
{ |
|||
public virtual Task ConfigureMenuAsync(MenuConfigurationContext context) |
|||
{ |
|||
Configure(context); |
|||
return Task.CompletedTask; |
|||
} |
|||
|
|||
protected virtual void Configure(MenuConfigurationContext context) |
|||
{ |
|||
var l = context.ServiceProvider |
|||
.GetRequiredService<IStringLocalizer<AbpUiNavigationResource>>(); |
|||
|
|||
if (context.Menu.Name == StandardMenus.Main) |
|||
{ |
|||
context.Menu.AddItem( |
|||
new ApplicationMenuItem( |
|||
DefaultMenuNames.Application.Main.Administration, |
|||
l["Menu:Administration"], |
|||
icon: "fa fa-wrench" |
|||
) |
|||
); |
|||
} |
|||
} |
|||
} |
|||
} |
|||
@ -0,0 +1,13 @@ |
|||
namespace Volo.Abp.Ui.Navigation |
|||
{ |
|||
public static class DefaultMenuNames |
|||
{ |
|||
public static class Application |
|||
{ |
|||
public static class Main |
|||
{ |
|||
public const string Administration = "Abp.Application.Main.Administration"; |
|||
} |
|||
} |
|||
} |
|||
} |
|||
@ -0,0 +1,10 @@ |
|||
using Volo.Abp.Localization; |
|||
|
|||
namespace Volo.Abp.Ui.Navigation.Localization.Resource |
|||
{ |
|||
[LocalizationResourceName("AbpUiNavigation")] |
|||
public class AbpUiNavigationResource |
|||
{ |
|||
|
|||
} |
|||
} |
|||
@ -0,0 +1,6 @@ |
|||
{ |
|||
"culture": "en", |
|||
"texts": { |
|||
"Menu:Administration": "Administration" |
|||
} |
|||
} |
|||
@ -0,0 +1,6 @@ |
|||
{ |
|||
"culture": "tr", |
|||
"texts": { |
|||
"Menu:Administration": "Yönetim" |
|||
} |
|||
} |
|||
@ -0,0 +1,10 @@ |
|||
{ |
|||
"culture": "zh-Hans", |
|||
"texts": { |
|||
"Permission:DocumentManagement": "文档管理", |
|||
"Permission:Projects": "项目", |
|||
"Permission:Edit": "编辑", |
|||
"Permission:Delete": "删除", |
|||
"Permission:Create": "创建" |
|||
} |
|||
} |
|||
@ -0,0 +1,26 @@ |
|||
{ |
|||
"culture": "zh-Hans", |
|||
"texts": { |
|||
"Menu:DocumentManagement": "文档", |
|||
"Menu:ProjectManagement": "项目", |
|||
"CreateANewProject": "创建新项目", |
|||
"Edit": "编辑", |
|||
"Create": "创建", |
|||
"Projects": "项目", |
|||
"Name": "名称", |
|||
"ShortName": "简称", |
|||
"DocumentStoreType": "文件存储类型", |
|||
"Format": "格式", |
|||
"ShortNameInfoText": "将用于唯一的URL.", |
|||
"DisplayName:Name": "名称", |
|||
"DisplayName:ShortName": "简称", |
|||
"DisplayName:Format": "格式", |
|||
"DisplayName:DefaultDocumentName": "默认文档名称", |
|||
"DisplayName:NavigationDocumentName": "导航文档名称", |
|||
"DisplayName:MinimumVersion": "最低版本", |
|||
"DisplayName:MainWebsiteUrl": "主网站网址", |
|||
"DisplayName:LatestVersionBranchName": "最新版本的分支名称", |
|||
"DisplayName:GitHubRootUrl": "GitHub根网址", |
|||
"DisplayName:GitHubAccessToken": "GitHub访问令牌" |
|||
} |
|||
} |
|||
@ -0,0 +1,11 @@ |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Text; |
|||
|
|||
namespace Volo.Abp.Identity |
|||
{ |
|||
public static class IdentityErrorCodes |
|||
{ |
|||
public const string UserSelfDeletion = "Volo.Abp.Identity:010001"; |
|||
} |
|||
} |
|||
@ -1,12 +1,14 @@ |
|||
{ |
|||
"culture": "zh-Hans", |
|||
"texts": { |
|||
"Permission:IdentityManagement": "身份认证管理", |
|||
"Volo.Abp.Identity:010001": "您无法删除自己的帐户!", |
|||
"Permission:IdentityManagement": "身份标识管理", |
|||
"Permission:RoleManagement": "角色管理", |
|||
"Permission:Create": "创建", |
|||
"Permission:Edit": "编辑", |
|||
"Permission:Delete": "删除", |
|||
"Permission:ChangePermissions": "更改权限", |
|||
"Permission:UserManagement": "用户管理" |
|||
"Permission:UserManagement": "用户管理", |
|||
"Permission:UserLookup": "用户查询" |
|||
} |
|||
} |
|||
@ -1,6 +1,8 @@ |
|||
{ |
|||
"culture": "zh-Hans", |
|||
"texts": { |
|||
"Permissions": "权限" |
|||
"Permissions": "权限", |
|||
"OnlyProviderPermissons": "只有这个提供商", |
|||
"All": "所有" |
|||
} |
|||
} |
|||
@ -0,0 +1,10 @@ |
|||
using Volo.Abp.Localization; |
|||
|
|||
namespace Volo.Abp.SettingManagement.Localization |
|||
{ |
|||
[LocalizationResourceName("AbpSettingManagement")] |
|||
public class AbpSettingManagementResource |
|||
{ |
|||
|
|||
} |
|||
} |
|||
@ -0,0 +1,6 @@ |
|||
{ |
|||
"culture": "en", |
|||
"texts": { |
|||
"Settings": "Settings" |
|||
} |
|||
} |
|||
@ -0,0 +1,6 @@ |
|||
{ |
|||
"culture": "tr", |
|||
"texts": { |
|||
"Settings": "Ayarlar" |
|||
} |
|||
} |
|||
@ -0,0 +1,6 @@ |
|||
{ |
|||
"culture": "zh-Hans", |
|||
"texts": { |
|||
"Settings": "设置" |
|||
} |
|||
} |
|||
@ -1,14 +1,7 @@ |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Linq; |
|||
using System.Threading.Tasks; |
|||
|
|||
namespace Volo.Abp.SettingManagement.Web.Navigation |
|||
namespace Volo.Abp.SettingManagement.Web.Navigation |
|||
{ |
|||
public class SettingManagementMenuNames |
|||
{ |
|||
public const string GroupName = "SettingManagement"; |
|||
|
|||
public const string Settings = GroupName + ".Settings"; |
|||
} |
|||
} |
|||
|
|||
@ -1,33 +1,31 @@ |
|||
apiVersion: extensions/v1beta1 |
|||
apiVersion: apps/v1 |
|||
kind: Deployment |
|||
metadata: |
|||
labels: |
|||
io.kompose.service: auth-server |
|||
name: auth-server |
|||
spec: |
|||
selector: |
|||
matchLabels: |
|||
app: auth-server |
|||
replicas: 1 |
|||
strategy: {} |
|||
template: |
|||
metadata: |
|||
labels: |
|||
io.kompose.service: auth-server |
|||
app: auth-server |
|||
spec: |
|||
containers: |
|||
- env: |
|||
- name: ASPNETCORE_ENVIRONMENT |
|||
value: Development |
|||
- name: ASPNETCORE_URLS |
|||
value: http://0.0.0.0:51511 |
|||
- name: ConnectionStrings__Default |
|||
value: Server=sqlserver;Database=MsDemo_Identity;Trusted_Connection=True;MultipleActiveResultSets=true;User=sa;Password=yourStrong(!)Password;Integrated Security=false |
|||
- name: RabbitMQ__Connections__Default__HostName |
|||
value: rabbitmq |
|||
- name: Redis__Configuration |
|||
value: redis |
|||
image: volosoft/microservice-demo-auth-server |
|||
name: auth-server |
|||
ports: |
|||
- containerPort: 51511 |
|||
resources: {} |
|||
restartPolicy: Always |
|||
status: {} |
|||
- name: auth-server |
|||
image: "volosoft/microservice-demo-auth-server" |
|||
env: |
|||
- name: ASPNETCORE_ENVIRONMENT |
|||
value: Development |
|||
- name: ASPNETCORE_URLS |
|||
value: http://0.0.0.0:51511 |
|||
- name: ConnectionStrings__Default |
|||
value: Server=sqlserver;Database=MsDemo_Identity;Trusted_Connection=True;MultipleActiveResultSets=true;User=sa;Password=yourStrong(!)Password;Integrated Security=false |
|||
- name: RabbitMQ__Connections__Default__HostName |
|||
value: rabbitmq |
|||
- name: Redis__Configuration |
|||
value: redis |
|||
ports: |
|||
- name: http |
|||
containerPort: 51511 |
|||
@ -1,14 +1,11 @@ |
|||
apiVersion: v1 |
|||
kind: Service |
|||
apiVersion: v1 |
|||
metadata: |
|||
labels: |
|||
io.kompose.service: auth-server |
|||
name: auth-server |
|||
spec: |
|||
ports: |
|||
- port: 51511 |
|||
targetPort: 51511 |
|||
selector: |
|||
io.kompose.service: auth-server |
|||
status: |
|||
loadBalancer: {} |
|||
app: auth-server |
|||
ports: |
|||
- protocol: TCP |
|||
port: 51511 |
|||
targetPort: http |
|||
@ -1,33 +1,31 @@ |
|||
apiVersion: extensions/v1beta1 |
|||
apiVersion: apps/v1 |
|||
kind: Deployment |
|||
metadata: |
|||
labels: |
|||
io.kompose.service: backend-admin-app |
|||
name: backend-admin-app |
|||
spec: |
|||
selector: |
|||
matchLabels: |
|||
app: backend-admin-app |
|||
replicas: 1 |
|||
strategy: {} |
|||
template: |
|||
metadata: |
|||
labels: |
|||
io.kompose.service: backend-admin-app |
|||
app: backend-admin-app |
|||
spec: |
|||
containers: |
|||
- env: |
|||
- name: ASPNETCORE_ENVIRONMENT |
|||
value: Development |
|||
- name: ASPNETCORE_URLS |
|||
value: http://0.0.0.0:80 |
|||
- name: AuthServer__Authority |
|||
value: http://auth-server:51511 |
|||
- name: Redis__Configuration |
|||
value: redis |
|||
- name: RemoteServices__Default__BaseUrl |
|||
value: http://backend-admin-app-gateway/ |
|||
image: volosoft/microservice-demo-backend-admin-app |
|||
name: backend-admin-app |
|||
ports: |
|||
- containerPort: 80 |
|||
resources: {} |
|||
restartPolicy: Always |
|||
status: {} |
|||
- name: backend-admin-app |
|||
image: "volosoft/microservice-demo-backend-admin-app" |
|||
env: |
|||
- name: ASPNETCORE_ENVIRONMENT |
|||
value: Development |
|||
- name: ASPNETCORE_URLS |
|||
value: http://0.0.0.0:80 |
|||
- name: AuthServer__Authority |
|||
value: http://auth-server:51511 |
|||
- name: Redis__Configuration |
|||
value: redis |
|||
- name: RemoteServices__Default__BaseUrl |
|||
value: http://backend-admin-app-gateway/ |
|||
ports: |
|||
- name: http |
|||
containerPort: 80 |
|||
@ -1,45 +1,43 @@ |
|||
apiVersion: extensions/v1beta1 |
|||
apiVersion: apps/v1 |
|||
kind: Deployment |
|||
metadata: |
|||
labels: |
|||
io.kompose.service: backend-admin-app-gateway |
|||
name: backend-admin-app-gateway |
|||
spec: |
|||
selector: |
|||
matchLabels: |
|||
app: backend-admin-app-gateway |
|||
replicas: 1 |
|||
strategy: {} |
|||
template: |
|||
metadata: |
|||
labels: |
|||
io.kompose.service: backend-admin-app-gateway |
|||
app: backend-admin-app-gateway |
|||
spec: |
|||
containers: |
|||
- env: |
|||
- name: ASPNETCORE_ENVIRONMENT |
|||
value: Development |
|||
- name: ASPNETCORE_URLS |
|||
value: http://0.0.0.0:80 |
|||
- name: AuthServer__Authority |
|||
value: http://auth-server:51511 |
|||
- name: ConnectionStrings__Default |
|||
value: Server=sqlserver;Database=MsDemo_Identity;Trusted_Connection=True;MultipleActiveResultSets=true;User=sa;Password=yourStrong(!)Password;Integrated Security=false |
|||
- name: GlobalConfiguration__BaseUrl |
|||
value: http://backend-admin-app-gateway |
|||
- name: ReRoutes__0__DownstreamHostAndPorts__0__Host |
|||
value: identity-service |
|||
- name: ReRoutes__0__DownstreamHostAndPorts__0__Port |
|||
value: "80" |
|||
- name: ReRoutes__1__DownstreamHostAndPorts__0__Host |
|||
value: product-service |
|||
- name: ReRoutes__1__DownstreamHostAndPorts__0__Port |
|||
value: "80" |
|||
- name: Redis__Configuration |
|||
value: redis |
|||
- name: RemoteServices__Default__BaseUrl |
|||
value: http://backend-admin-app-gateway/ |
|||
image: volosoft/microservice-demo-backend-admin-app-gateway |
|||
name: backend-admin-app-gateway |
|||
ports: |
|||
- containerPort: 80 |
|||
resources: {} |
|||
restartPolicy: Always |
|||
status: {} |
|||
- name: backend-admin-app-gateway |
|||
image: "volosoft/microservice-demo-backend-admin-app-gateway" |
|||
env: |
|||
- name: ASPNETCORE_ENVIRONMENT |
|||
value: Development |
|||
- name: ASPNETCORE_URLS |
|||
value: http://0.0.0.0:80 |
|||
- name: AuthServer__Authority |
|||
value: http://auth-server:51511 |
|||
- name: ConnectionStrings__Default |
|||
value: Server=sqlserver;Database=MsDemo_Identity;Trusted_Connection=True;MultipleActiveResultSets=true;User=sa;Password=yourStrong(!)Password;Integrated Security=false |
|||
- name: GlobalConfiguration__BaseUrl |
|||
value: http://backend-admin-app-gateway |
|||
- name: ReRoutes__0__DownstreamHostAndPorts__0__Host |
|||
value: identity-service |
|||
- name: ReRoutes__0__DownstreamHostAndPorts__0__Port |
|||
value: "80" |
|||
- name: ReRoutes__1__DownstreamHostAndPorts__0__Host |
|||
value: product-service |
|||
- name: ReRoutes__1__DownstreamHostAndPorts__0__Port |
|||
value: "80" |
|||
- name: Redis__Configuration |
|||
value: redis |
|||
- name: RemoteServices__Default__BaseUrl |
|||
value: http://backend-admin-app-gateway/ |
|||
ports: |
|||
- name: http |
|||
containerPort: 80 |
|||
@ -1,14 +1,11 @@ |
|||
apiVersion: v1 |
|||
kind: Service |
|||
apiVersion: v1 |
|||
metadata: |
|||
labels: |
|||
io.kompose.service: backend-admin-app-gateway |
|||
name: backend-admin-app-gateway |
|||
spec: |
|||
ports: |
|||
- port: 80 |
|||
targetPort: 80 |
|||
selector: |
|||
io.kompose.service: backend-admin-app-gateway |
|||
status: |
|||
loadBalancer: {} |
|||
app: backend-admin-app-gateway |
|||
ports: |
|||
- protocol: TCP |
|||
port: 80 |
|||
targetPort: http |
|||
@ -1,14 +1,11 @@ |
|||
apiVersion: v1 |
|||
kind: Service |
|||
apiVersion: v1 |
|||
metadata: |
|||
labels: |
|||
io.kompose.service: backend-admin-app |
|||
name: backend-admin-app |
|||
spec: |
|||
ports: |
|||
- port: 80 |
|||
targetPort: 80 |
|||
selector: |
|||
io.kompose.service: backend-admin-app |
|||
status: |
|||
loadBalancer: {} |
|||
app: backend-admin-app |
|||
ports: |
|||
- protocol: TCP |
|||
port: 80 |
|||
targetPort: http |
|||
@ -1,39 +1,37 @@ |
|||
apiVersion: extensions/v1beta1 |
|||
apiVersion: apps/v1 |
|||
kind: Deployment |
|||
metadata: |
|||
labels: |
|||
io.kompose.service: blogging-service |
|||
name: blogging-service |
|||
spec: |
|||
selector: |
|||
matchLabels: |
|||
app: blogging-service |
|||
replicas: 1 |
|||
strategy: {} |
|||
template: |
|||
metadata: |
|||
labels: |
|||
io.kompose.service: blogging-service |
|||
app: blogging-service |
|||
spec: |
|||
containers: |
|||
- env: |
|||
- name: ASPNETCORE_ENVIRONMENT |
|||
value: Development |
|||
- name: ASPNETCORE_URLS |
|||
value: http://0.0.0.0:80 |
|||
- name: AuthServer__Authority |
|||
value: http://auth-server:51511 |
|||
- name: ConnectionStrings__Blogging |
|||
value: mongodb://mongodb|MsDemo_Blogging |
|||
- name: ConnectionStrings__Default |
|||
value: Server=sqlserver;Database=MsDemo_Identity;Trusted_Connection=True;MultipleActiveResultSets=true;User=sa;Password=yourStrong(!)Password;Integrated Security=false |
|||
- name: RabbitMQ__Connections__Default__HostName |
|||
value: rabbitmq |
|||
- name: Redis__Configuration |
|||
value: redis |
|||
- name: RemoteServices__Default__BaseUrl |
|||
value: http://internal-gateway/ |
|||
image: volosoft/microservice-demo-blogging-service |
|||
name: blogging-service |
|||
ports: |
|||
- containerPort: 80 |
|||
resources: {} |
|||
restartPolicy: Always |
|||
status: {} |
|||
- name: blogging-service |
|||
image: "volosoft/microservice-demo-blogging-service" |
|||
env: |
|||
- name: ASPNETCORE_ENVIRONMENT |
|||
value: Development |
|||
- name: ASPNETCORE_URLS |
|||
value: http://0.0.0.0:80 |
|||
- name: AuthServer__Authority |
|||
value: http://auth-server:51511 |
|||
- name: ConnectionStrings__Blogging |
|||
value: mongodb://mongodb|MsDemo_Blogging |
|||
- name: ConnectionStrings__Default |
|||
value: Server=sqlserver;Database=MsDemo_Identity;Trusted_Connection=True;MultipleActiveResultSets=true;User=sa;Password=yourStrong(!)Password;Integrated Security=false |
|||
- name: RabbitMQ__Connections__Default__HostName |
|||
value: rabbitmq |
|||
- name: Redis__Configuration |
|||
value: redis |
|||
- name: RemoteServices__Default__BaseUrl |
|||
value: http://internal-gateway/ |
|||
ports: |
|||
- name: http |
|||
containerPort: 80 |
|||
@ -1,14 +1,11 @@ |
|||
apiVersion: v1 |
|||
kind: Service |
|||
apiVersion: v1 |
|||
metadata: |
|||
labels: |
|||
io.kompose.service: blogging-service |
|||
name: blogging-service |
|||
spec: |
|||
ports: |
|||
- port: 80 |
|||
targetPort: 80 |
|||
selector: |
|||
io.kompose.service: blogging-service |
|||
status: |
|||
loadBalancer: {} |
|||
app: blogging-service |
|||
ports: |
|||
- protocol: TCP |
|||
port: 80 |
|||
targetPort: http |
|||
Some files were not shown because too many files changed in this diff
Loading…
Reference in new issue