Skip to content

Commit

Permalink
Adding SSL configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
wobla committed Jul 16, 2024
1 parent ee261df commit df071fc
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.

.devNotes

# User-specific files
*.suo
*.user
Expand Down
3 changes: 3 additions & 0 deletions api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS runtime
WORKDIR /app
COPY --from=build /app/api/out ./

# Copy the certificate
COPY https/aspnetapp.pfx /https/aspnetapp.pfx

# Expose port 80
EXPOSE 80
EXPOSE 443
Expand Down
11 changes: 11 additions & 0 deletions api/appsettings.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
{
"Kestrel": {
"Endpoints": {
"Https": {
"Url": "https://*:443",
"Certificate": {
"Path": "/https/aspnetapp.pfx",
"Password": "developerPassword"
}
}
}
},
"Logging": {
"LogLevel": {
"Default": "Information",
Expand Down

0 comments on commit df071fc

Please sign in to comment.