Browse Source

refactored appsettings for dbmigrator

pull/51/head
Halil İbrahim Kalkan 5 years ago
parent
commit
1889f4ad37
  1. 9
      etc/k8s/helm-chart/eventhub/charts/dbmigrator/templates/migrator.yaml
  2. 5
      etc/k8s/helm-chart/eventhub/values.yaml
  3. 1
      src/EventHub.Admin.HttpApi.Host/EventHubAdminHttpApiHostModule.cs
  4. 4
      src/EventHub.DbMigrator/EventHub.DbMigrator.csproj
  5. 5
      src/EventHub.DbMigrator/appsettings.Development.json
  6. 8
      src/EventHub.DbMigrator/appsettings.json

9
etc/k8s/helm-chart/eventhub/charts/dbmigrator/templates/migrator.yaml

@ -10,5 +10,14 @@ spec:
- name: {{ .Release.Name }}-{{ .Chart.Name }}
image: {{ .Values.containerImage }}
imagePullPolicy: Never
env:
- name: "ConnectionStrings__Default"
value: "Host=eh-st-postgresql;Port=5435;Database=EventHub;Username=root;Password=root"
- name: "IdentityServer__Clients__EventHub_Web__RootUrl"
value: {{ .Values.global.wwwUrlFull }}
- name: "IdentityServer__Clients__EventHub_Blazor__RootUrl"
value: {{ .Values.global.adminUrlFull }}
- name: "IdentityServer__Clients__EventHub_Swagger__RootUrl"
value: {{ .Values.global.apiUrlFull }}
restartPolicy: Never
backoffLimit: 4

5
etc/k8s/helm-chart/eventhub/values.yaml

@ -1,6 +1,11 @@
global:
accountUrl: eh-st-account
accountUrlFull: https://eh-st-account
apiUrl: eh-st-api
apiUrlFull: https://eh-st-api
wwwUrl: eh-st-www
wwwUrlFull: "https://eh-st-www"
adminUrl: eh-st-admin
adminUrlFull: https://eh-st-admin
nginxProxyBufferSize: "32k"
nginxProxyBuffersNumber: "8"

1
src/EventHub.Admin.HttpApi.Host/EventHubAdminHttpApiHostModule.cs

@ -15,7 +15,6 @@ using Microsoft.Extensions.Hosting;
using Microsoft.OpenApi.Models;
using StackExchange.Redis;
using Volo.Abp;
using Volo.Abp.AspNetCore.Mvc.UI.Bundling;
using Volo.Abp.AspNetCore.Mvc.UI.Theme.Basic;
using Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared;
using Volo.Abp.AspNetCore.Serilog;

4
src/EventHub.DbMigrator/EventHub.DbMigrator.csproj

@ -12,10 +12,6 @@
</ItemGroup>
<ItemGroup>
<Content Include="appsettings.Development.json">
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="appsettings.json">
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
<CopyToOutputDirectory>Always</CopyToOutputDirectory>

5
src/EventHub.DbMigrator/appsettings.Development.json

@ -1,5 +0,0 @@
{
"ConnectionStrings": {
"Default": "Host=localhost;Database=EventHub;Username=root;Password=root;Port=5432"
}
}

8
src/EventHub.DbMigrator/appsettings.json

@ -1,22 +1,22 @@
{
"ConnectionStrings": {
"Default": "Host=eh-st-postgresql;Port=5435;Database=EventHub;Username=root;Password=root"
"Default": "Host=localhost;Database=EventHub;Username=root;Password=root;Port=5432"
},
"IdentityServer": {
"Clients": {
"EventHub_Web": {
"ClientId": "EventHub_Web",
"ClientSecret": "1q2w3e*",
"RootUrl": "https://eh-st-www"
"RootUrl": "https://localhost:44308"
},
"EventHub_Blazor": {
"ClientId": "EventHub_Blazor",
"RootUrl": "https://eh-st-admin"
"RootUrl": "https://localhost:44307"
},
"EventHub_Swagger": {
"ClientId": "EventHub_Swagger",
"ClientSecret": "1q2w3e*",
"RootUrl": "https://eh-st-api"
"RootUrl": "https://localhost:44362"
}
}
}

Loading…
Cancel
Save