Browse Source

update for eventhub.web login issue

dev
yusuf karatoprak 6 years ago
parent
commit
7b6f589e69
  1. 2
      manifests/deployment.eventhub.identityserver.yml
  2. 2
      manifests/deployment.eventhub.web.yml
  3. 2
      manifests/eventhub.identityserver.ingress.yaml
  4. 3
      src/EventHub.IdentityServer/Program.cs
  5. 4
      src/EventHub.Web/Program.cs
  6. 6
      src/EventHub.Web/Properties/launchSettings.json
  7. 6
      src/EventHub.Web/appsettings.json

2
manifests/deployment.eventhub.identityserver.yml

@ -13,7 +13,7 @@ spec:
spec: spec:
containers: containers:
- name: identityserver - name: identityserver
image: eventhubregistry.azurecr.io/eventhubregistry:v3 image: eventhubregistry.azurecr.io/eventhubidentityserver:v1
imagePullPolicy: Always imagePullPolicy: Always
resources: resources:
requests: requests:

2
manifests/deployment.eventhub.web.yml

@ -13,7 +13,7 @@ spec:
spec: spec:
containers: containers:
- name: web - name: web
image: eventhubregistry.azurecr.io/eventhubregistry:v4 image: eventhubregistry.azurecr.io/eventhubweb:v4
imagePullPolicy: Always imagePullPolicy: Always
resources: resources:
requests: requests:

2
manifests/eventhub.identityserver.ingress.yaml

@ -12,7 +12,7 @@ spec:
- identityserver.eventhub.gokhansengun.com - identityserver.eventhub.gokhansengun.com
secretName: identityserver-tls secretName: identityserver-tls
rules: rules:
- host: api.eventhub.gokhansengun.com - host: identityserver.eventhub.gokhansengun.com
http: http:
paths: paths:
- backend: - backend:

3
src/EventHub.IdentityServer/Program.cs

@ -19,7 +19,8 @@ namespace EventHub
.MinimumLevel.Override("Microsoft", LogEventLevel.Information) .MinimumLevel.Override("Microsoft", LogEventLevel.Information)
.MinimumLevel.Override("Microsoft.EntityFrameworkCore", LogEventLevel.Warning) .MinimumLevel.Override("Microsoft.EntityFrameworkCore", LogEventLevel.Warning)
.Enrich.FromLogContext() .Enrich.FromLogContext()
.WriteTo.Async(c => c.File("Logs/logs.txt")) //.WriteTo.Async(c => c.File("Logs/logs.txt"))
.WriteTo.Async(c => c.Console())
#if DEBUG #if DEBUG
.WriteTo.Async(c => c.Console()) .WriteTo.Async(c => c.Console())
#endif #endif

4
src/EventHub.Web/Program.cs

@ -19,7 +19,9 @@ namespace EventHub.Web
.MinimumLevel.Override("Microsoft", LogEventLevel.Information) .MinimumLevel.Override("Microsoft", LogEventLevel.Information)
.MinimumLevel.Override("Microsoft.EntityFrameworkCore", LogEventLevel.Warning) .MinimumLevel.Override("Microsoft.EntityFrameworkCore", LogEventLevel.Warning)
.Enrich.FromLogContext() .Enrich.FromLogContext()
.WriteTo.Async(c => c.File("Logs/logs.txt")) //.WriteTo.Async(c => c.File("Logs/logs.txt"))
.WriteTo.Async(c => c.Console())
.WriteTo.Async(c => Console.WriteLine("yusuf karatoprak"))
#if DEBUG #if DEBUG
.WriteTo.Async(c => c.Console()) .WriteTo.Async(c => c.Console())
#endif #endif

6
src/EventHub.Web/Properties/launchSettings.json

@ -3,8 +3,8 @@
"windowsAuthentication": false, "windowsAuthentication": false,
"anonymousAuthentication": true, "anonymousAuthentication": true,
"iisExpress": { "iisExpress": {
"applicationUrl": "https://localhost:44308", "applicationUrl": "https://web.eventhub.gokhansengun.com/",
"sslPort": 44308 "sslPort": 80
} }
}, },
"profiles": { "profiles": {
@ -18,7 +18,7 @@
"EventHub.Web": { "EventHub.Web": {
"commandName": "Project", "commandName": "Project",
"launchBrowser": true, "launchBrowser": true,
"applicationUrl": "https://localhost:44308", "applicationUrl": "https://web.eventhub.gokhansengun.com/",
"environmentVariables": { "environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development" "ASPNETCORE_ENVIRONMENT": "Development"
} }

6
src/EventHub.Web/appsettings.json

@ -1,17 +1,17 @@
{ {
"App": { "App": {
"SelfUrl": "http://20.50.101.77:5001" "SelfUrl": "https://web.eventhub.gokhansengun.com/"
}, },
"RemoteServices": { "RemoteServices": {
"Default": { "Default": {
"BaseUrl": "http://20.76.43.241:5002/" "BaseUrl": "https://api.eventhub.gokhansengun.com"
} }
}, },
"Redis": { "Redis": {
"Configuration": "volosofteventhub.redis.cache.windows.net:6380,password=9Kc6E1lbwy5c+RHR1KZS26JPydYR5SeR8UixdECQWv4=,ssl=True,abortConnect=False" "Configuration": "volosofteventhub.redis.cache.windows.net:6380,password=9Kc6E1lbwy5c+RHR1KZS26JPydYR5SeR8UixdECQWv4=,ssl=True,abortConnect=False"
}, },
"AuthServer": { "AuthServer": {
"Authority": "http://20.50.101.77:5001", "Authority": "https://identityserver.eventhub.gokhansengun.com",
"RequireHttpsMetadata": "true", "RequireHttpsMetadata": "true",
"ClientId": "EventHub_Web", "ClientId": "EventHub_Web",
"ClientSecret": "1q2w3e*" "ClientSecret": "1q2w3e*"

Loading…
Cancel
Save