Skip to content
Permalink
Browse files

https

  • Loading branch information
ignatandrei committed Dec 30, 2019
1 parent 2b305d2 commit c371e67aea3a283d3b8c208eec168c795f6fe680
Showing with 3 additions and 3 deletions.
  1. +1 −1 InfoValutar/.devcontainer/Dockerfilenetcore
  2. +2 −2 InfoValutar/.devcontainer/devcontainer.json
@@ -31,7 +31,7 @@ ARG INSTALL_AZURE_CLI="false"
# Switch back to dialog for any ad-hoc use of apt-get
ENV DEBIAN_FRONTEND=dialog
RUN ["dotnet" ,"dev-certs","https", "--clean"]
RUN ["dotnet","dev-certs","https","-ep","\"/home/vscode/.aspnet/https/aspnetapp.pfx\"","-p","\"SecurePwdGoesHere\""]
#RUN ["dotnet","dev-certs","https","-ep","\"/home/vscode/.aspnet/https/aspnetapp.pfx\"","-p","\"SecurePwdGoesHere\""]
#look into the line
#"-e", "ASPNETCORE_Kestrel__Certificates__Default__Path=/workspaces/InfoValutar/InfoValutar/:USERPROFILE/.aspnet/https/aspnetapp.pfx",
# from devcontainer.json
@@ -29,7 +29,7 @@
// "-v", "${env:HOME}${env:USERPROFILE}/.aspnet/https:/home/vscode/.aspnet/https",
"-e", "ASPNETCORE_Kestrel__Endpoints__Https__Url=https://*:44385",
"-e", "ASPNETCORE_Kestrel__Certificates__Default__Password=SecurePwdGoesHere",
"-e", "ASPNETCORE_Kestrel__Certificates__Default__Path=/workspaces/InfoValutar/InfoValutar/:USERPROFILE/.aspnet/https/aspnetapp.pfx",
"-e", "ASPNETCORE_Kestrel__Certificates__Default__Path=/home/vscode/.aspnet/https/aspnetapp.pfx",

// [Optional] Override the default HTTP endpoints - need to listen to '*' for appPort to work
"-e", "ASPNETCORE_Kestrel__Endpoints__Http__Url=http://*:8080"
@@ -58,7 +58,7 @@
"formulahendry.dotnet-test-explorer"
]
,
"postCreateCommand": "dotnet tool restore && dotnet build && echo 'dotnet watch --project InfoValutarWebAPI/InfoValutarWebAPI.csproj run'",
"postCreateCommand": "dotnet dev-certs https -ep \"/home/vscode/.aspnet/https/aspnetapp.pfx\" -p \"SecurePwdGoesHere\" && dotnet tool restore && dotnet build && echo 'dotnet watch --project InfoValutarWebAPI/InfoValutarWebAPI.csproj run'",
"overrideCommand":true,
"shutdownAction": "stopContainer"
}

0 comments on commit c371e67

Please sign in to comment.
You can’t perform that action at this time.