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": {
|
||||
"IncludeScopes": false,
|
||||
"Debug": {
|
||||
"LogLevel": {
|
||||
"Default": "Warning"
|
||||
}
|
||||
},
|
||||
"Console": {
|
||||
"LogLevel": {
|
||||
"Default": "Warning"
|
||||
}
|
||||
}
|
||||
}
|
||||
"Logging": {
|
||||
"IncludeScopes": false,
|
||||
"Debug": {
|
||||
"LogLevel": {
|
||||
"Default": "Warning"
|
||||
}
|
||||
},
|
||||
"Console": {
|
||||
"LogLevel": {
|
||||
"Default": "Warning"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Kestrel": {
|
||||
"Certificates": {
|
||||
"Default": {
|
||||
"Path": "./synergydev.pfx",
|
||||
"Password": "RH@ssl2018"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
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
|
||||
EXPOSE 80
|
||||
EXPOSE 443
|
||||
@ -17,7 +17,7 @@ FROM dotnet-build as build
|
||||
WORKDIR /src/src/Web/WebMVC/wwwroot
|
||||
COPY --from=node-build /web/wwwroot .
|
||||
WORKDIR /src
|
||||
COPY src/Web/WebMVC/synergydev.pfx /root/.aspnet/https/
|
||||
COPY Certificates/eShopOnContainers.pfx /root/.aspnet/https/
|
||||
COPY . .
|
||||
WORKDIR /src/src/Web/WebMVC
|
||||
RUN dotnet restore -nowarn:msb3202,nu1503
|
||||
|
Loading…
x
Reference in New Issue
Block a user