mirror of https://github.com/abpframework/abp.git
committed by
GitHub
83 changed files with 1529 additions and 636 deletions
@ -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访问令牌" |
|||
} |
|||
} |
|||
@ -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,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 |
|||
@ -1,35 +1,33 @@ |
|||
apiVersion: extensions/v1beta1 |
|||
apiVersion: apps/v1 |
|||
kind: Deployment |
|||
metadata: |
|||
labels: |
|||
io.kompose.service: identity-service |
|||
name: identity-service |
|||
spec: |
|||
selector: |
|||
matchLabels: |
|||
app: identity-service |
|||
replicas: 1 |
|||
strategy: {} |
|||
template: |
|||
metadata: |
|||
labels: |
|||
io.kompose.service: identity-service |
|||
app: identity-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__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-identity-service |
|||
name: identity-service |
|||
ports: |
|||
- containerPort: 80 |
|||
resources: {} |
|||
restartPolicy: Always |
|||
status: {} |
|||
- name: identity-service |
|||
image: "volosoft/microservice-demo-identity-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__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: 80 |
|||
@ -1,14 +1,11 @@ |
|||
apiVersion: v1 |
|||
kind: Service |
|||
apiVersion: v1 |
|||
metadata: |
|||
labels: |
|||
io.kompose.service: identity-service |
|||
name: identity-service |
|||
spec: |
|||
ports: |
|||
- port: 80 |
|||
targetPort: 80 |
|||
selector: |
|||
io.kompose.service: identity-service |
|||
status: |
|||
loadBalancer: {} |
|||
app: identity-service |
|||
ports: |
|||
- protocol: TCP |
|||
port: 80 |
|||
targetPort: http |
|||
@ -1,47 +1,45 @@ |
|||
apiVersion: extensions/v1beta1 |
|||
apiVersion: apps/v1 |
|||
kind: Deployment |
|||
metadata: |
|||
labels: |
|||
io.kompose.service: internal-gateway |
|||
name: internal-gateway |
|||
spec: |
|||
selector: |
|||
matchLabels: |
|||
app: internal-gateway |
|||
replicas: 1 |
|||
strategy: {} |
|||
template: |
|||
metadata: |
|||
labels: |
|||
io.kompose.service: internal-gateway |
|||
app: internal-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://internal-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: ReRoutes__2__DownstreamHostAndPorts__0__Host |
|||
value: blogging-service |
|||
- name: ReRoutes__2__DownstreamHostAndPorts__0__Port |
|||
value: "80" |
|||
- name: Redis__Configuration |
|||
value: redis |
|||
image: volosoft/microservice-demo-internal-gateway |
|||
name: internal-gateway |
|||
ports: |
|||
- containerPort: 80 |
|||
resources: {} |
|||
restartPolicy: Always |
|||
status: {} |
|||
- name: internal-gateway |
|||
image: "volosoft/microservice-demo-internal-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://internal-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: ReRoutes__2__DownstreamHostAndPorts__0__Host |
|||
value: blogging-service |
|||
- name: ReRoutes__2__DownstreamHostAndPorts__0__Port |
|||
value: "80" |
|||
- name: Redis__Configuration |
|||
value: redis |
|||
ports: |
|||
- name: http |
|||
containerPort: 80 |
|||
@ -1,14 +1,11 @@ |
|||
apiVersion: v1 |
|||
kind: Service |
|||
apiVersion: v1 |
|||
metadata: |
|||
labels: |
|||
io.kompose.service: internal-gateway |
|||
name: internal-gateway |
|||
spec: |
|||
ports: |
|||
- port: 80 |
|||
targetPort: 80 |
|||
selector: |
|||
io.kompose.service: internal-gateway |
|||
status: |
|||
loadBalancer: {} |
|||
app: internal-gateway |
|||
ports: |
|||
- protocol: TCP |
|||
port: 80 |
|||
targetPort: http |
|||
@ -1,22 +1,19 @@ |
|||
apiVersion: extensions/v1beta1 |
|||
apiVersion: apps/v1 |
|||
kind: Deployment |
|||
metadata: |
|||
labels: |
|||
io.kompose.service: mongodb |
|||
name: mongodb |
|||
spec: |
|||
selector: |
|||
matchLabels: |
|||
app: mongodb |
|||
replicas: 1 |
|||
strategy: {} |
|||
template: |
|||
metadata: |
|||
labels: |
|||
io.kompose.service: mongodb |
|||
app: mongodb |
|||
spec: |
|||
containers: |
|||
- image: mongo |
|||
name: mongodb |
|||
ports: |
|||
- containerPort: 27017 |
|||
resources: {} |
|||
restartPolicy: Always |
|||
status: {} |
|||
- name: mongodb |
|||
image: "mongo" |
|||
ports: |
|||
- containerPort: 27017 |
|||
@ -1,14 +1,10 @@ |
|||
apiVersion: v1 |
|||
kind: Service |
|||
apiVersion: v1 |
|||
metadata: |
|||
labels: |
|||
io.kompose.service: mongodb |
|||
name: mongodb |
|||
spec: |
|||
selector: |
|||
app: mongodb |
|||
ports: |
|||
- port: 27017 |
|||
targetPort: 27017 |
|||
selector: |
|||
io.kompose.service: mongodb |
|||
status: |
|||
loadBalancer: {} |
|||
targetPort: 27017 |
|||
@ -1,38 +1,36 @@ |
|||
apiVersion: extensions/v1beta1 |
|||
apiVersion: apps/v1 |
|||
kind: Deployment |
|||
metadata: |
|||
labels: |
|||
io.kompose.service: product-service |
|||
name: product-service |
|||
spec: |
|||
selector: |
|||
matchLabels: |
|||
app: product-service |
|||
replicas: 1 |
|||
strategy: {} |
|||
template: |
|||
metadata: |
|||
labels: |
|||
io.kompose.service: product-service |
|||
app: product-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__Default |
|||
value: Server=sqlserver;Database=MsDemo_Identity;Trusted_Connection=True;MultipleActiveResultSets=true;User=sa;Password=yourStrong(!)Password;Integrated |
|||
Security=false |
|||
- name: ConnectionStrings__ProductManagement |
|||
value: Server=sqlserver;Database=MsDemo_ProductManagement;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-product-service |
|||
name: product-service |
|||
ports: |
|||
- containerPort: 80 |
|||
resources: {} |
|||
restartPolicy: Always |
|||
status: {} |
|||
- name: product-service |
|||
image: "volosoft/microservice-demo-product-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__Default |
|||
value: Server=sqlserver;Database=MsDemo_Identity;Trusted_Connection=True;MultipleActiveResultSets=true;User=sa;Password=yourStrong(!)Password;Integrated |
|||
Security=false |
|||
- name: ConnectionStrings__ProductManagement |
|||
value: Server=sqlserver;Database=MsDemo_ProductManagement;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: 80 |
|||
@ -1,14 +1,11 @@ |
|||
apiVersion: v1 |
|||
kind: Service |
|||
apiVersion: v1 |
|||
metadata: |
|||
labels: |
|||
io.kompose.service: product-service |
|||
name: product-service |
|||
spec: |
|||
ports: |
|||
- port: 80 |
|||
targetPort: 80 |
|||
selector: |
|||
io.kompose.service: product-service |
|||
status: |
|||
loadBalancer: {} |
|||
app: product-service |
|||
ports: |
|||
- protocol: TCP |
|||
port: 80 |
|||
targetPort: http |
|||
@ -1,33 +1,31 @@ |
|||
apiVersion: extensions/v1beta1 |
|||
apiVersion: apps/v1 |
|||
kind: Deployment |
|||
metadata: |
|||
labels: |
|||
io.kompose.service: public-website |
|||
name: public-website |
|||
spec: |
|||
selector: |
|||
matchLabels: |
|||
app: public-website |
|||
replicas: 1 |
|||
strategy: {} |
|||
template: |
|||
metadata: |
|||
labels: |
|||
io.kompose.service: public-website |
|||
app: public-website |
|||
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://public-website-gateway/ |
|||
image: volosoft/microservice-demo-public-website |
|||
name: public-website |
|||
ports: |
|||
- containerPort: 80 |
|||
resources: {} |
|||
restartPolicy: Always |
|||
status: {} |
|||
- name: public-website |
|||
image: "volosoft/microservice-demo-public-website" |
|||
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://public-website-gateway/ |
|||
ports: |
|||
- name: http |
|||
containerPort: 80 |
|||
@ -1,43 +1,41 @@ |
|||
apiVersion: extensions/v1beta1 |
|||
apiVersion: apps/v1 |
|||
kind: Deployment |
|||
metadata: |
|||
labels: |
|||
io.kompose.service: public-website-gateway |
|||
name: public-website-gateway |
|||
spec: |
|||
selector: |
|||
matchLabels: |
|||
app: public-website-gateway |
|||
replicas: 1 |
|||
strategy: {} |
|||
template: |
|||
metadata: |
|||
labels: |
|||
io.kompose.service: public-website-gateway |
|||
app: public-website-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://public-website-gateway |
|||
- name: ReRoutes__0__DownstreamHostAndPorts__0__Host |
|||
value: product-service |
|||
- name: ReRoutes__0__DownstreamHostAndPorts__0__Port |
|||
value: "80" |
|||
- name: ReRoutes__1__DownstreamHostAndPorts__0__Host |
|||
value: blogging-service |
|||
- name: ReRoutes__1__DownstreamHostAndPorts__0__Port |
|||
value: "80" |
|||
- name: Redis__Configuration |
|||
value: redis |
|||
image: volosoft/microservice-demo-public-website-gateway |
|||
name: public-website-gateway |
|||
ports: |
|||
- containerPort: 80 |
|||
resources: {} |
|||
restartPolicy: Always |
|||
status: {} |
|||
- name: public-website-gateway |
|||
image: "volosoft/microservice-demo-public-website-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://public-website-gateway |
|||
- name: ReRoutes__0__DownstreamHostAndPorts__0__Host |
|||
value: product-service |
|||
- name: ReRoutes__0__DownstreamHostAndPorts__0__Port |
|||
value: "80" |
|||
- name: ReRoutes__1__DownstreamHostAndPorts__0__Host |
|||
value: blogging-service |
|||
- name: ReRoutes__1__DownstreamHostAndPorts__0__Port |
|||
value: "80" |
|||
- name: Redis__Configuration |
|||
value: redis |
|||
ports: |
|||
- name: http |
|||
containerPort: 80 |
|||
@ -1,14 +1,11 @@ |
|||
apiVersion: v1 |
|||
kind: Service |
|||
apiVersion: v1 |
|||
metadata: |
|||
labels: |
|||
io.kompose.service: public-website-gateway |
|||
name: public-website-gateway |
|||
spec: |
|||
ports: |
|||
- port: 80 |
|||
targetPort: 80 |
|||
selector: |
|||
io.kompose.service: public-website-gateway |
|||
status: |
|||
loadBalancer: {} |
|||
app: public-website-gateway |
|||
ports: |
|||
- protocol: TCP |
|||
port: 80 |
|||
targetPort: http |
|||
@ -1,14 +1,11 @@ |
|||
apiVersion: v1 |
|||
kind: Service |
|||
apiVersion: v1 |
|||
metadata: |
|||
labels: |
|||
io.kompose.service: public-website |
|||
name: public-website |
|||
spec: |
|||
ports: |
|||
- port: 80 |
|||
targetPort: 80 |
|||
selector: |
|||
io.kompose.service: public-website |
|||
status: |
|||
loadBalancer: {} |
|||
app: public-website |
|||
ports: |
|||
- protocol: TCP |
|||
port: 80 |
|||
targetPort: http |
|||
@ -1,23 +1,20 @@ |
|||
apiVersion: extensions/v1beta1 |
|||
apiVersion: apps/v1 |
|||
kind: Deployment |
|||
metadata: |
|||
labels: |
|||
io.kompose.service: rabbitmq |
|||
name: rabbitmq |
|||
spec: |
|||
selector: |
|||
matchLabels: |
|||
app: rabbitmq |
|||
replicas: 1 |
|||
strategy: {} |
|||
template: |
|||
metadata: |
|||
labels: |
|||
io.kompose.service: rabbitmq |
|||
app: rabbitmq |
|||
spec: |
|||
containers: |
|||
- image: rabbitmq:3-management-alpine |
|||
name: rabbitmq |
|||
ports: |
|||
- containerPort: 5672 |
|||
- containerPort: 15672 |
|||
resources: {} |
|||
restartPolicy: Always |
|||
status: {} |
|||
- name: rabbitmq |
|||
image: "rabbitmq:3-management-alpine" |
|||
ports: |
|||
- containerPort: 5672 |
|||
- containerPort: 15672 |
|||
@ -1,18 +1,14 @@ |
|||
apiVersion: v1 |
|||
kind: Service |
|||
apiVersion: v1 |
|||
metadata: |
|||
labels: |
|||
io.kompose.service: rabbitmq |
|||
name: rabbitmq |
|||
spec: |
|||
selector: |
|||
app: rabbitmq |
|||
ports: |
|||
- name: "5672" |
|||
port: 5672 |
|||
targetPort: 5672 |
|||
- name: "15672" |
|||
port: 15672 |
|||
targetPort: 15672 |
|||
selector: |
|||
io.kompose.service: rabbitmq |
|||
status: |
|||
loadBalancer: {} |
|||
targetPort: 15672 |
|||
@ -1,22 +1,19 @@ |
|||
apiVersion: extensions/v1beta1 |
|||
apiVersion: apps/v1 |
|||
kind: Deployment |
|||
metadata: |
|||
labels: |
|||
io.kompose.service: redis |
|||
name: redis |
|||
spec: |
|||
selector: |
|||
matchLabels: |
|||
app: redis |
|||
replicas: 1 |
|||
strategy: {} |
|||
template: |
|||
metadata: |
|||
labels: |
|||
io.kompose.service: redis |
|||
app: redis |
|||
spec: |
|||
containers: |
|||
- image: redis |
|||
name: redis |
|||
ports: |
|||
- containerPort: 6379 |
|||
resources: {} |
|||
restartPolicy: Always |
|||
status: {} |
|||
- name: redis |
|||
image: "redis" |
|||
ports: |
|||
- containerPort: 6379 |
|||
@ -1,14 +1,10 @@ |
|||
apiVersion: v1 |
|||
kind: Service |
|||
apiVersion: v1 |
|||
metadata: |
|||
labels: |
|||
io.kompose.service: redis |
|||
name: redis |
|||
spec: |
|||
ports: |
|||
- port: 6379 |
|||
targetPort: 6379 |
|||
selector: |
|||
io.kompose.service: redis |
|||
status: |
|||
loadBalancer: {} |
|||
app: redis |
|||
ports: |
|||
- port: 6379 |
|||
targetPort: 6379 |
|||
@ -1,35 +1,35 @@ |
|||
apiVersion: extensions/v1beta1 |
|||
apiVersion: apps/v1 |
|||
kind: Deployment |
|||
metadata: |
|||
labels: |
|||
io.kompose.service: sqlserver |
|||
name: sqlserver |
|||
spec: |
|||
selector: |
|||
matchLabels: |
|||
app: sqlserver |
|||
replicas: 1 |
|||
strategy: |
|||
type: Recreate |
|||
template: |
|||
metadata: |
|||
labels: |
|||
io.kompose.service: sqlserver |
|||
app: sqlserver |
|||
spec: |
|||
containers: |
|||
- env: |
|||
- name: sqlserver |
|||
image: mcr.microsoft.com/mssql/server |
|||
ports: |
|||
- containerPort: 1433 |
|||
env: |
|||
- name: MSSQL_PID |
|||
value: "Developer" |
|||
- name: ACCEPT_EULA |
|||
value: "Y" |
|||
- name: SA_PASSWORD |
|||
value: yourStrong(!)Password |
|||
image: mcr.microsoft.com/mssql/server |
|||
name: sqlserver |
|||
ports: |
|||
- containerPort: 1433 |
|||
resources: {} |
|||
- name: MSSQL_SA_PASSWORD |
|||
value: yourStrong(!)Password |
|||
volumeMounts: |
|||
- mountPath: /var/opt/mssql |
|||
name: dbdata |
|||
restartPolicy: Always |
|||
- name: dbdata |
|||
mountPath: /var/opt/mssql |
|||
volumes: |
|||
- name: dbdata |
|||
persistentVolumeClaim: |
|||
claimName: dbdata |
|||
status: {} |
|||
claimName: dbdata |
|||
@ -1,14 +1,11 @@ |
|||
apiVersion: v1 |
|||
kind: Service |
|||
apiVersion: v1 |
|||
metadata: |
|||
labels: |
|||
io.kompose.service: sqlserver |
|||
name: sqlserver |
|||
spec: |
|||
ports: |
|||
- port: 1433 |
|||
targetPort: 1433 |
|||
selector: |
|||
io.kompose.service: sqlserver |
|||
status: |
|||
loadBalancer: {} |
|||
app: sqlserver |
|||
ports: |
|||
- protocol: TCP |
|||
port: 1433 |
|||
targetPort: 1433 |
|||
@ -0,0 +1,53 @@ |
|||
using System; |
|||
using Volo.Abp.Domain.Entities.Auditing; |
|||
using Volo.Abp.Users; |
|||
|
|||
namespace MyCompanyName.MyProjectName.Users |
|||
{ |
|||
/* This entity shares the same table/collection ("AbpUsers" by default) with the |
|||
* IdentityUser entity of the Identity module. |
|||
* |
|||
* - You can define your custom properties into this class. |
|||
* - You never create or delete this entity, becase it is Identity module's job. |
|||
* - You can query users from database with this entity. |
|||
* - You can update values of your custom properties. |
|||
*/ |
|||
public class AppUser : FullAuditedAggregateRoot<Guid>, IUser |
|||
{ |
|||
#region Base properties
|
|||
|
|||
/* These properties are shared with the IdentityUser entity of the Identity module. |
|||
* Do not change these properties through this class. Instead, use Identity module |
|||
* services (like IdentityUserManager) to change them. |
|||
* So, this properties are designed as read only! |
|||
*/ |
|||
|
|||
public virtual Guid? TenantId { get; private set; } |
|||
|
|||
public virtual string UserName { get; private set; } |
|||
|
|||
public virtual string Name { get; private set; } |
|||
|
|||
public virtual string Surname { get; private set; } |
|||
|
|||
public virtual string Email { get; private set; } |
|||
|
|||
public virtual bool EmailConfirmed { get; private set; } |
|||
|
|||
public virtual string PhoneNumber { get; private set; } |
|||
|
|||
public virtual bool PhoneNumberConfirmed { get; private set; } |
|||
|
|||
#endregion
|
|||
|
|||
/* Add your own properties here. Example: |
|||
* |
|||
* public virtual string MyProperty { get; set; } |
|||
*/ |
|||
|
|||
private AppUser() |
|||
{ |
|||
|
|||
} |
|||
} |
|||
} |
|||
@ -1,29 +0,0 @@ |
|||
using System.IO; |
|||
using Microsoft.EntityFrameworkCore; |
|||
using Microsoft.EntityFrameworkCore.Design; |
|||
using Microsoft.Extensions.Configuration; |
|||
|
|||
namespace MyCompanyName.MyProjectName.EntityFrameworkCore |
|||
{ |
|||
public class MyProjectNameDbContextFactory : IDesignTimeDbContextFactory<MyProjectNameDbContext> |
|||
{ |
|||
public MyProjectNameDbContext CreateDbContext(string[] args) |
|||
{ |
|||
var configuration = BuildConfiguration(); |
|||
|
|||
var builder = new DbContextOptionsBuilder<MyProjectNameDbContext>() |
|||
.UseSqlServer(configuration.GetConnectionString("Default")); |
|||
|
|||
return new MyProjectNameDbContext(builder.Options); |
|||
} |
|||
|
|||
private static IConfigurationRoot BuildConfiguration() |
|||
{ |
|||
var builder = new ConfigurationBuilder() |
|||
.SetBasePath(Path.Combine(Directory.GetCurrentDirectory(), "../MyCompanyName.MyProjectName.Web/")) |
|||
.AddJsonFile("appsettings.json", optional: false); |
|||
|
|||
return builder.Build(); |
|||
} |
|||
} |
|||
} |
|||
@ -1,26 +0,0 @@ |
|||
using System.Threading.Tasks; |
|||
using Microsoft.Extensions.DependencyInjection; |
|||
using Shouldly; |
|||
using Volo.Abp.Identity; |
|||
using Xunit; |
|||
|
|||
namespace MyCompanyName.MyProjectName.Samples |
|||
{ |
|||
public class SampleTest : MyProjectNameApplicationTestBase |
|||
{ |
|||
private readonly IIdentityUserAppService _userAppService; |
|||
|
|||
public SampleTest() |
|||
{ |
|||
_userAppService = ServiceProvider.GetRequiredService<IIdentityUserAppService>(); |
|||
} |
|||
|
|||
[Fact] |
|||
public async Task Initial_Data_Should_Contain_Admin_User() |
|||
{ |
|||
var result = await _userAppService.GetListAsync(new GetIdentityUsersInput()); |
|||
result.TotalCount.ShouldBeGreaterThan(0); |
|||
result.Items.ShouldContain(u => u.UserName == "admin"); |
|||
} |
|||
} |
|||
} |
|||
@ -0,0 +1,59 @@ |
|||
using System; |
|||
using System.Linq; |
|||
using System.Threading.Tasks; |
|||
using Microsoft.EntityFrameworkCore; |
|||
using Microsoft.Extensions.DependencyInjection; |
|||
using MyCompanyName.MyProjectName.Users; |
|||
using Shouldly; |
|||
using Volo.Abp.Domain.Repositories; |
|||
using Volo.Abp.Identity; |
|||
using Volo.Abp.Uow; |
|||
using Xunit; |
|||
|
|||
namespace MyCompanyName.MyProjectName.Samples |
|||
{ |
|||
public class SampleTests : MyProjectNameApplicationTestBase |
|||
{ |
|||
private readonly IIdentityUserAppService _userAppService; |
|||
private readonly IRepository<AppUser, Guid> _appUserRepository; |
|||
private readonly IUnitOfWorkManager _unitOfWorkManager; |
|||
|
|||
public SampleTests() |
|||
{ |
|||
_userAppService = ServiceProvider.GetRequiredService<IIdentityUserAppService>(); |
|||
_appUserRepository = ServiceProvider.GetRequiredService<IRepository<AppUser, Guid>>(); |
|||
_unitOfWorkManager = ServiceProvider.GetRequiredService<IUnitOfWorkManager>(); |
|||
} |
|||
|
|||
[Fact] |
|||
public async Task Initial_Data_Should_Contain_Admin_User() |
|||
{ |
|||
//Act
|
|||
var result = await _userAppService.GetListAsync(new GetIdentityUsersInput()); |
|||
|
|||
//Assert
|
|||
result.TotalCount.ShouldBeGreaterThan(0); |
|||
result.Items.ShouldContain(u => u.UserName == "admin"); |
|||
} |
|||
|
|||
[Fact] |
|||
public async Task Should_Query_AppUser() |
|||
{ |
|||
/* Need to manually start Unit Of Work because |
|||
* FirstOrDefaultAsync should be executed while db connection / context is available. |
|||
*/ |
|||
using (var uow = _unitOfWorkManager.Begin()) |
|||
{ |
|||
//Act
|
|||
var adminUser = await _appUserRepository |
|||
.Where(u => u.UserName == "admin") |
|||
.FirstOrDefaultAsync(); |
|||
|
|||
//Assert
|
|||
adminUser.ShouldNotBeNull(); |
|||
|
|||
await uow.CompleteAsync(); |
|||
} |
|||
} |
|||
} |
|||
} |
|||
@ -1,6 +1,7 @@ |
|||
{ |
|||
"ConnectionStrings": { |
|||
"Default": "Server=localhost;Database=IdentityServerHost;Trusted_Connection=True;MultipleActiveResultSets=true", |
|||
"SqlServerCache": "Server=localhost;Database=MyProjectNameCache;Trusted_Connection=True;MultipleActiveResultSets=true" |
|||
"Default": "Server=localhost;Database=MyProjectName_Identity;Trusted_Connection=True;MultipleActiveResultSets=true", |
|||
|
|||
"SqlServerCache": "Server=localhost;Database=MyProjectName_Cache;Trusted_Connection=True;MultipleActiveResultSets=true" |
|||
} |
|||
} |
|||
@ -1 +1 @@ |
|||
dotnet sql-cache create "Server=localhost;Database=MyProjectNameCache;Trusted_Connection=True;MultipleActiveResultSets=true" dbo TestCache |
|||
dotnet sql-cache create "Server=localhost;Database=MyProjectName_Cache;Trusted_Connection=True;MultipleActiveResultSets=true" dbo TestCache |
|||
@ -1,6 +1,11 @@ |
|||
{ |
|||
"ConnectionStrings": { |
|||
"Default": "Server=localhost;Database=MyProjectNameHost;Trusted_Connection=True;MultipleActiveResultSets=true", |
|||
"SqlServerCache": "Server=localhost;Database=MyProjectNameCache;Trusted_Connection=True;MultipleActiveResultSets=true" |
|||
"Default": "Server=localhost;Database=MyProjectName_ModuleDb;Trusted_Connection=True;MultipleActiveResultSets=true", |
|||
|
|||
"AbpSettingManagement": "Server=localhost;Database=MyProjectName_Identity;Trusted_Connection=True;MultipleActiveResultSets=true", |
|||
"AbpPermissionManagement": "Server=localhost;Database=MyProjectName_Identity;Trusted_Connection=True;MultipleActiveResultSets=true", |
|||
"AbpAuditLogging": "Server=localhost;Database=MyProjectName_Identity;Trusted_Connection=True;MultipleActiveResultSets=true", |
|||
|
|||
"SqlServerCache": "Server=localhost;Database=MyProjectName_Cache;Trusted_Connection=True;MultipleActiveResultSets=true" |
|||
} |
|||
} |
|||
Loading…
Reference in new issue