Browse Source

update for eventhub.web endpoints

staging
yusuf karatoprak 6 years ago
parent
commit
60a19805ba
  1. 2
      Dockerfile.EventHub.HttpApi.Host
  2. 2
      Dockerfile.EventHub.IdentityServer
  3. 2
      Dockerfile.EventHub.Web
  4. 2
      manifests/service.eventhub.web.yml
  5. 8
      src/EventHub.Web/appsettings.json

2
Dockerfile.EventHub.HttpApi.Host

@ -9,6 +9,8 @@ COPY ["src/EventHub.HttpApi.Host/EventHub.HttpApi.Host.csproj", "src/EventHub.Ht
RUN dotnet restore "src/EventHub.HttpApi.Host/EventHub.HttpApi.Host.csproj" RUN dotnet restore "src/EventHub.HttpApi.Host/EventHub.HttpApi.Host.csproj"
COPY . . COPY . .
WORKDIR "/src/src/EventHub.HttpApi.Host" WORKDIR "/src/src/EventHub.HttpApi.Host"
RUN dotnet dev-certs https --trust
RUN dotnet build "EventHub.HttpApi.Host.csproj" -c Release -o /app RUN dotnet build "EventHub.HttpApi.Host.csproj" -c Release -o /app
FROM build AS publish FROM build AS publish

2
Dockerfile.EventHub.IdentityServer

@ -9,6 +9,8 @@ COPY ["src/EventHub.IdentityServer/EventHub.IdentityServer.csproj", "src/EventHu
RUN dotnet restore "src/EventHub.IdentityServer/EventHub.IdentityServer.csproj" RUN dotnet restore "src/EventHub.IdentityServer/EventHub.IdentityServer.csproj"
COPY . . COPY . .
WORKDIR "/src/src/EventHub.IdentityServer" WORKDIR "/src/src/EventHub.IdentityServer"
RUN dotnet dev-certs https --trust
RUN dotnet build "EventHub.IdentityServer.csproj" -c Release -o /app RUN dotnet build "EventHub.IdentityServer.csproj" -c Release -o /app
FROM build AS publish FROM build AS publish

2
Dockerfile.EventHub.Web

@ -9,6 +9,8 @@ COPY ["src/EventHub.Web/EventHub.Web.csproj", "src/EventHub.Web/"]
RUN dotnet restore "src/EventHub.Web/EventHub.Web.csproj" RUN dotnet restore "src/EventHub.Web/EventHub.Web.csproj"
COPY . . COPY . .
WORKDIR "/src/src/EventHub.Web" WORKDIR "/src/src/EventHub.Web"
RUN dotnet dev-certs https --trust
RUN dotnet build "EventHub.Web.csproj" -c Release -o /app RUN dotnet build "EventHub.Web.csproj" -c Release -o /app
FROM build AS publish FROM build AS publish

2
manifests/service.eventhub.web.yml

@ -8,4 +8,4 @@ spec:
ports: ports:
- port: 8080 - port: 8080
targetPort: 80 targetPort: 80
type: ClusterIP type: LoadBalancer

8
src/EventHub.Web/appsettings.json

@ -1,17 +1,17 @@
{ {
"App": { "App": {
"SelfUrl": "https://localhost:44308" "SelfUrl": "http://40.88.252.120:5001"
}, },
"RemoteServices": { "RemoteServices": {
"Default": { "Default": {
"BaseUrl": "https://localhost:44362/" "BaseUrl": "http://20.71.4.19:5002/"
} }
}, },
"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": "https://localhost:44313", "Authority": "http://40.88.252.120:5001/",
"RequireHttpsMetadata": "true", "RequireHttpsMetadata": "true",
"ClientId": "EventHub_Web", "ClientId": "EventHub_Web",
"ClientSecret": "1q2w3e*" "ClientSecret": "1q2w3e*"
@ -19,4 +19,4 @@
"StringEncryption": { "StringEncryption": {
"DefaultPassPhrase": "7loHY5ax625vIGkV" "DefaultPassPhrase": "7loHY5ax625vIGkV"
} }
} }
Loading…
Cancel
Save