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; |
namespace Volo.Utils.SolutionTemplating.Building |
||||
using System.Linq; |
|
||||
using Volo.Utils.SolutionTemplating.Files; |
|
||||
|
|
||||
namespace Volo.Utils.SolutionTemplating.Building |
|
||||
{ |
{ |
||||
public abstract class ProjectBuildPipelineStep |
public abstract class ProjectBuildPipelineStep |
||||
{ |
{ |
||||
public abstract void Execute(ProjectBuildContext context); |
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 |
namespace Volo.Abp.AspNetCore.Mvc.ApplicationConfigurations |
||||
{ |
{ |
||||
|
[Serializable] |
||||
public class ApplicationFeatureConfigurationDto |
public class ApplicationFeatureConfigurationDto |
||||
{ |
{ |
||||
public Dictionary<string, string> Values { get; set; } |
public Dictionary<string, string> Values { get; set; } |
||||
|
|
||||
|
public ApplicationFeatureConfigurationDto() |
||||
|
{ |
||||
|
Values = new Dictionary<string, string>(); |
||||
|
} |
||||
} |
} |
||||
} |
} |
||||
@ -1,16 +1,21 @@ |
|||||
using System; |
using System; |
||||
using System.Collections.Generic; |
using System.Collections.Generic; |
||||
|
using Volo.Abp.Localization; |
||||
|
|
||||
namespace Volo.Abp.AspNetCore.Mvc.ApplicationConfigurations |
namespace Volo.Abp.AspNetCore.Mvc.ApplicationConfigurations |
||||
{ |
{ |
||||
[Serializable] |
[Serializable] |
||||
public class ApplicationLocalizationConfigurationDto |
public class ApplicationLocalizationConfigurationDto |
||||
{ |
{ |
||||
|
//TODO: Rename to Texts?
|
||||
public Dictionary<string, Dictionary<string, string>> Values { get; set; } |
public Dictionary<string, Dictionary<string, string>> Values { get; set; } |
||||
|
|
||||
|
public List<LanguageInfo> Languages { get; set; } |
||||
|
|
||||
public ApplicationLocalizationConfigurationDto() |
public ApplicationLocalizationConfigurationDto() |
||||
{ |
{ |
||||
Values = new Dictionary<string, Dictionary<string, string>>(); |
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 |
namespace Volo.Abp.UI.Navigation |
||||
{ |
{ |
||||
[DependsOn(typeof(AbpUiModule))] |
[DependsOn(typeof(AbpUiModule))] |
||||
public class AbpUiNavigationModule : AbpModule |
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", |
"culture": "zh-Hans", |
||||
"texts": { |
"texts": { |
||||
"Permission:IdentityManagement": "身份认证管理", |
"Volo.Abp.Identity:010001": "您无法删除自己的帐户!", |
||||
|
"Permission:IdentityManagement": "身份标识管理", |
||||
"Permission:RoleManagement": "角色管理", |
"Permission:RoleManagement": "角色管理", |
||||
"Permission:Create": "创建", |
"Permission:Create": "创建", |
||||
"Permission:Edit": "编辑", |
"Permission:Edit": "编辑", |
||||
"Permission:Delete": "删除", |
"Permission:Delete": "删除", |
||||
"Permission:ChangePermissions": "更改权限", |
"Permission:ChangePermissions": "更改权限", |
||||
"Permission:UserManagement": "用户管理" |
"Permission:UserManagement": "用户管理", |
||||
|
"Permission:UserLookup": "用户查询" |
||||
} |
} |
||||
} |
} |
||||
@ -1,6 +1,8 @@ |
|||||
{ |
{ |
||||
"culture": "zh-Hans", |
"culture": "zh-Hans", |
||||
"texts": { |
"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; |
namespace Volo.Abp.SettingManagement.Web.Navigation |
||||
using System.Collections.Generic; |
|
||||
using System.Linq; |
|
||||
using System.Threading.Tasks; |
|
||||
|
|
||||
namespace Volo.Abp.SettingManagement.Web.Navigation |
|
||||
{ |
{ |
||||
public class SettingManagementMenuNames |
public class SettingManagementMenuNames |
||||
{ |
{ |
||||
public const string GroupName = "SettingManagement"; |
public const string GroupName = "SettingManagement"; |
||||
|
|
||||
public const string Settings = GroupName + ".Settings"; |
|
||||
} |
} |
||||
} |
} |
||||
|
|||||
@ -1,33 +1,31 @@ |
|||||
apiVersion: extensions/v1beta1 |
apiVersion: apps/v1 |
||||
kind: Deployment |
kind: Deployment |
||||
metadata: |
metadata: |
||||
labels: |
|
||||
io.kompose.service: auth-server |
|
||||
name: auth-server |
name: auth-server |
||||
spec: |
spec: |
||||
|
selector: |
||||
|
matchLabels: |
||||
|
app: auth-server |
||||
replicas: 1 |
replicas: 1 |
||||
strategy: {} |
|
||||
template: |
template: |
||||
metadata: |
metadata: |
||||
labels: |
labels: |
||||
io.kompose.service: auth-server |
app: auth-server |
||||
spec: |
spec: |
||||
containers: |
containers: |
||||
- env: |
- name: auth-server |
||||
- name: ASPNETCORE_ENVIRONMENT |
image: "volosoft/microservice-demo-auth-server" |
||||
value: Development |
env: |
||||
- name: ASPNETCORE_URLS |
- name: ASPNETCORE_ENVIRONMENT |
||||
value: http://0.0.0.0:51511 |
value: Development |
||||
- name: ConnectionStrings__Default |
- name: ASPNETCORE_URLS |
||||
value: Server=sqlserver;Database=MsDemo_Identity;Trusted_Connection=True;MultipleActiveResultSets=true;User=sa;Password=yourStrong(!)Password;Integrated Security=false |
value: http://0.0.0.0:51511 |
||||
- name: RabbitMQ__Connections__Default__HostName |
- name: ConnectionStrings__Default |
||||
value: rabbitmq |
value: Server=sqlserver;Database=MsDemo_Identity;Trusted_Connection=True;MultipleActiveResultSets=true;User=sa;Password=yourStrong(!)Password;Integrated Security=false |
||||
- name: Redis__Configuration |
- name: RabbitMQ__Connections__Default__HostName |
||||
value: redis |
value: rabbitmq |
||||
image: volosoft/microservice-demo-auth-server |
- name: Redis__Configuration |
||||
name: auth-server |
value: redis |
||||
ports: |
ports: |
||||
- containerPort: 51511 |
- name: http |
||||
resources: {} |
containerPort: 51511 |
||||
restartPolicy: Always |
|
||||
status: {} |
|
||||
@ -1,14 +1,11 @@ |
|||||
apiVersion: v1 |
|
||||
kind: Service |
kind: Service |
||||
|
apiVersion: v1 |
||||
metadata: |
metadata: |
||||
labels: |
|
||||
io.kompose.service: auth-server |
|
||||
name: auth-server |
name: auth-server |
||||
spec: |
spec: |
||||
ports: |
|
||||
- port: 51511 |
|
||||
targetPort: 51511 |
|
||||
selector: |
selector: |
||||
io.kompose.service: auth-server |
app: auth-server |
||||
status: |
ports: |
||||
loadBalancer: {} |
- protocol: TCP |
||||
|
port: 51511 |
||||
|
targetPort: http |
||||
@ -1,33 +1,31 @@ |
|||||
apiVersion: extensions/v1beta1 |
apiVersion: apps/v1 |
||||
kind: Deployment |
kind: Deployment |
||||
metadata: |
metadata: |
||||
labels: |
|
||||
io.kompose.service: backend-admin-app |
|
||||
name: backend-admin-app |
name: backend-admin-app |
||||
spec: |
spec: |
||||
|
selector: |
||||
|
matchLabels: |
||||
|
app: backend-admin-app |
||||
replicas: 1 |
replicas: 1 |
||||
strategy: {} |
|
||||
template: |
template: |
||||
metadata: |
metadata: |
||||
labels: |
labels: |
||||
io.kompose.service: backend-admin-app |
app: backend-admin-app |
||||
spec: |
spec: |
||||
containers: |
containers: |
||||
- env: |
- name: backend-admin-app |
||||
- name: ASPNETCORE_ENVIRONMENT |
image: "volosoft/microservice-demo-backend-admin-app" |
||||
value: Development |
env: |
||||
- name: ASPNETCORE_URLS |
- name: ASPNETCORE_ENVIRONMENT |
||||
value: http://0.0.0.0:80 |
value: Development |
||||
- name: AuthServer__Authority |
- name: ASPNETCORE_URLS |
||||
value: http://auth-server:51511 |
value: http://0.0.0.0:80 |
||||
- name: Redis__Configuration |
- name: AuthServer__Authority |
||||
value: redis |
value: http://auth-server:51511 |
||||
- name: RemoteServices__Default__BaseUrl |
- name: Redis__Configuration |
||||
value: http://backend-admin-app-gateway/ |
value: redis |
||||
image: volosoft/microservice-demo-backend-admin-app |
- name: RemoteServices__Default__BaseUrl |
||||
name: backend-admin-app |
value: http://backend-admin-app-gateway/ |
||||
ports: |
ports: |
||||
- containerPort: 80 |
- name: http |
||||
resources: {} |
containerPort: 80 |
||||
restartPolicy: Always |
|
||||
status: {} |
|
||||
@ -1,45 +1,43 @@ |
|||||
apiVersion: extensions/v1beta1 |
apiVersion: apps/v1 |
||||
kind: Deployment |
kind: Deployment |
||||
metadata: |
metadata: |
||||
labels: |
|
||||
io.kompose.service: backend-admin-app-gateway |
|
||||
name: backend-admin-app-gateway |
name: backend-admin-app-gateway |
||||
spec: |
spec: |
||||
|
selector: |
||||
|
matchLabels: |
||||
|
app: backend-admin-app-gateway |
||||
replicas: 1 |
replicas: 1 |
||||
strategy: {} |
|
||||
template: |
template: |
||||
metadata: |
metadata: |
||||
labels: |
labels: |
||||
io.kompose.service: backend-admin-app-gateway |
app: backend-admin-app-gateway |
||||
spec: |
spec: |
||||
containers: |
containers: |
||||
- env: |
- name: backend-admin-app-gateway |
||||
- name: ASPNETCORE_ENVIRONMENT |
image: "volosoft/microservice-demo-backend-admin-app-gateway" |
||||
value: Development |
env: |
||||
- name: ASPNETCORE_URLS |
- name: ASPNETCORE_ENVIRONMENT |
||||
value: http://0.0.0.0:80 |
value: Development |
||||
- name: AuthServer__Authority |
- name: ASPNETCORE_URLS |
||||
value: http://auth-server:51511 |
value: http://0.0.0.0:80 |
||||
- name: ConnectionStrings__Default |
- name: AuthServer__Authority |
||||
value: Server=sqlserver;Database=MsDemo_Identity;Trusted_Connection=True;MultipleActiveResultSets=true;User=sa;Password=yourStrong(!)Password;Integrated Security=false |
value: http://auth-server:51511 |
||||
- name: GlobalConfiguration__BaseUrl |
- name: ConnectionStrings__Default |
||||
value: http://backend-admin-app-gateway |
value: Server=sqlserver;Database=MsDemo_Identity;Trusted_Connection=True;MultipleActiveResultSets=true;User=sa;Password=yourStrong(!)Password;Integrated Security=false |
||||
- name: ReRoutes__0__DownstreamHostAndPorts__0__Host |
- name: GlobalConfiguration__BaseUrl |
||||
value: identity-service |
value: http://backend-admin-app-gateway |
||||
- name: ReRoutes__0__DownstreamHostAndPorts__0__Port |
- name: ReRoutes__0__DownstreamHostAndPorts__0__Host |
||||
value: "80" |
value: identity-service |
||||
- name: ReRoutes__1__DownstreamHostAndPorts__0__Host |
- name: ReRoutes__0__DownstreamHostAndPorts__0__Port |
||||
value: product-service |
value: "80" |
||||
- name: ReRoutes__1__DownstreamHostAndPorts__0__Port |
- name: ReRoutes__1__DownstreamHostAndPorts__0__Host |
||||
value: "80" |
value: product-service |
||||
- name: Redis__Configuration |
- name: ReRoutes__1__DownstreamHostAndPorts__0__Port |
||||
value: redis |
value: "80" |
||||
- name: RemoteServices__Default__BaseUrl |
- name: Redis__Configuration |
||||
value: http://backend-admin-app-gateway/ |
value: redis |
||||
image: volosoft/microservice-demo-backend-admin-app-gateway |
- name: RemoteServices__Default__BaseUrl |
||||
name: backend-admin-app-gateway |
value: http://backend-admin-app-gateway/ |
||||
ports: |
ports: |
||||
- containerPort: 80 |
- name: http |
||||
resources: {} |
containerPort: 80 |
||||
restartPolicy: Always |
|
||||
status: {} |
|
||||
@ -1,14 +1,11 @@ |
|||||
apiVersion: v1 |
|
||||
kind: Service |
kind: Service |
||||
|
apiVersion: v1 |
||||
metadata: |
metadata: |
||||
labels: |
|
||||
io.kompose.service: backend-admin-app-gateway |
|
||||
name: backend-admin-app-gateway |
name: backend-admin-app-gateway |
||||
spec: |
spec: |
||||
ports: |
|
||||
- port: 80 |
|
||||
targetPort: 80 |
|
||||
selector: |
selector: |
||||
io.kompose.service: backend-admin-app-gateway |
app: backend-admin-app-gateway |
||||
status: |
ports: |
||||
loadBalancer: {} |
- protocol: TCP |
||||
|
port: 80 |
||||
|
targetPort: http |
||||
@ -1,14 +1,11 @@ |
|||||
apiVersion: v1 |
|
||||
kind: Service |
kind: Service |
||||
|
apiVersion: v1 |
||||
metadata: |
metadata: |
||||
labels: |
|
||||
io.kompose.service: backend-admin-app |
|
||||
name: backend-admin-app |
name: backend-admin-app |
||||
spec: |
spec: |
||||
ports: |
|
||||
- port: 80 |
|
||||
targetPort: 80 |
|
||||
selector: |
selector: |
||||
io.kompose.service: backend-admin-app |
app: backend-admin-app |
||||
status: |
ports: |
||||
loadBalancer: {} |
- protocol: TCP |
||||
|
port: 80 |
||||
|
targetPort: http |
||||
@ -1,39 +1,37 @@ |
|||||
apiVersion: extensions/v1beta1 |
apiVersion: apps/v1 |
||||
kind: Deployment |
kind: Deployment |
||||
metadata: |
metadata: |
||||
labels: |
|
||||
io.kompose.service: blogging-service |
|
||||
name: blogging-service |
name: blogging-service |
||||
spec: |
spec: |
||||
|
selector: |
||||
|
matchLabels: |
||||
|
app: blogging-service |
||||
replicas: 1 |
replicas: 1 |
||||
strategy: {} |
|
||||
template: |
template: |
||||
metadata: |
metadata: |
||||
labels: |
labels: |
||||
io.kompose.service: blogging-service |
app: blogging-service |
||||
spec: |
spec: |
||||
containers: |
containers: |
||||
- env: |
- name: blogging-service |
||||
- name: ASPNETCORE_ENVIRONMENT |
image: "volosoft/microservice-demo-blogging-service" |
||||
value: Development |
env: |
||||
- name: ASPNETCORE_URLS |
- name: ASPNETCORE_ENVIRONMENT |
||||
value: http://0.0.0.0:80 |
value: Development |
||||
- name: AuthServer__Authority |
- name: ASPNETCORE_URLS |
||||
value: http://auth-server:51511 |
value: http://0.0.0.0:80 |
||||
- name: ConnectionStrings__Blogging |
- name: AuthServer__Authority |
||||
value: mongodb://mongodb|MsDemo_Blogging |
value: http://auth-server:51511 |
||||
- name: ConnectionStrings__Default |
- name: ConnectionStrings__Blogging |
||||
value: Server=sqlserver;Database=MsDemo_Identity;Trusted_Connection=True;MultipleActiveResultSets=true;User=sa;Password=yourStrong(!)Password;Integrated Security=false |
value: mongodb://mongodb|MsDemo_Blogging |
||||
- name: RabbitMQ__Connections__Default__HostName |
- name: ConnectionStrings__Default |
||||
value: rabbitmq |
value: Server=sqlserver;Database=MsDemo_Identity;Trusted_Connection=True;MultipleActiveResultSets=true;User=sa;Password=yourStrong(!)Password;Integrated Security=false |
||||
- name: Redis__Configuration |
- name: RabbitMQ__Connections__Default__HostName |
||||
value: redis |
value: rabbitmq |
||||
- name: RemoteServices__Default__BaseUrl |
- name: Redis__Configuration |
||||
value: http://internal-gateway/ |
value: redis |
||||
image: volosoft/microservice-demo-blogging-service |
- name: RemoteServices__Default__BaseUrl |
||||
name: blogging-service |
value: http://internal-gateway/ |
||||
ports: |
ports: |
||||
- containerPort: 80 |
- name: http |
||||
resources: {} |
containerPort: 80 |
||||
restartPolicy: Always |
|
||||
status: {} |
|
||||
@ -1,14 +1,11 @@ |
|||||
apiVersion: v1 |
|
||||
kind: Service |
kind: Service |
||||
|
apiVersion: v1 |
||||
metadata: |
metadata: |
||||
labels: |
|
||||
io.kompose.service: blogging-service |
|
||||
name: blogging-service |
name: blogging-service |
||||
spec: |
spec: |
||||
ports: |
|
||||
- port: 80 |
|
||||
targetPort: 80 |
|
||||
selector: |
selector: |
||||
io.kompose.service: blogging-service |
app: blogging-service |
||||
status: |
ports: |
||||
loadBalancer: {} |
- protocol: TCP |
||||
|
port: 80 |
||||
|
targetPort: http |
||||
Some files were not shown because too many files changed in this diff
Loading…
Reference in new issue