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:
containers:
- name: identityserver
image: eventhubregistry.azurecr.io/eventhubregistry:v3
image: eventhubregistry.azurecr.io/eventhubidentityserver:v1
imagePullPolicy: Always
resources:
requests:

2
manifests/deployment.eventhub.web.yml

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

2
manifests/eventhub.identityserver.ingress.yaml

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

3
src/EventHub.IdentityServer/Program.cs

@ -19,7 +19,8 @@ namespace EventHub
.MinimumLevel.Override("Microsoft", LogEventLevel.Information)
.MinimumLevel.Override("Microsoft.EntityFrameworkCore", LogEventLevel.Warning)
.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
.WriteTo.Async(c => c.Console())
#endif

4
src/EventHub.Web/Program.cs

@ -19,7 +19,9 @@ namespace EventHub.Web
.MinimumLevel.Override("Microsoft", LogEventLevel.Information)
.MinimumLevel.Override("Microsoft.EntityFrameworkCore", LogEventLevel.Warning)
.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
.WriteTo.Async(c => c.Console())
#endif

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

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

6
src/EventHub.Web/appsettings.json

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

Loading…
Cancel
Save