1. Added SSL certificates (pfx files)
2. Copy the certificate to the Linux Container system folder 3. Specified SSL certificate (pfx) path and password in appsettings.json
This commit is contained in:
parent
c15c898175
commit
b4044a57b6
BIN
Certificates/DotNet Foundation CA.pfx
Normal file
BIN
Certificates/DotNet Foundation CA.pfx
Normal file
Binary file not shown.
BIN
Certificates/eShopOnContainers.pfx
Normal file
BIN
Certificates/eShopOnContainers.pfx
Normal file
Binary file not shown.
@ -1,15 +1,23 @@
|
|||||||
{
|
{
|
||||||
"Logging": {
|
"Logging": {
|
||||||
"IncludeScopes": false,
|
"IncludeScopes": false,
|
||||||
"Debug": {
|
"Debug": {
|
||||||
"LogLevel": {
|
"LogLevel": {
|
||||||
"Default": "Warning"
|
"Default": "Warning"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"Console": {
|
"Console": {
|
||||||
"LogLevel": {
|
"LogLevel": {
|
||||||
"Default": "Warning"
|
"Default": "Warning"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"Kestrel": {
|
||||||
|
"Certificates": {
|
||||||
|
"Default": {
|
||||||
|
"Path": "./synergydev.pfx",
|
||||||
|
"Password": "RH@ssl2018"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
ARG NODE_IMAGE=node:8.11
|
ARG NODE_IMAGE=node:8.11
|
||||||
FROM microsoft/dotnet:2.1-aspnetcore-runtime AS base
|
FROM microsoft/dotnet:2.1.3-aspnetcore-runtime AS base
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
EXPOSE 443
|
EXPOSE 443
|
||||||
@ -17,7 +17,7 @@ FROM dotnet-build as build
|
|||||||
WORKDIR /src/src/Web/WebMVC/wwwroot
|
WORKDIR /src/src/Web/WebMVC/wwwroot
|
||||||
COPY --from=node-build /web/wwwroot .
|
COPY --from=node-build /web/wwwroot .
|
||||||
WORKDIR /src
|
WORKDIR /src
|
||||||
COPY src/Web/WebMVC/synergydev.pfx /root/.aspnet/https/
|
COPY Certificates/eShopOnContainers.pfx /root/.aspnet/https/
|
||||||
COPY . .
|
COPY . .
|
||||||
WORKDIR /src/src/Web/WebMVC
|
WORKDIR /src/src/Web/WebMVC
|
||||||
RUN dotnet restore -nowarn:msb3202,nu1503
|
RUN dotnet restore -nowarn:msb3202,nu1503
|
||||||
|
Loading…
x
Reference in New Issue
Block a user