Skip to content

Commit

Permalink
Merge pull request #9 from roro89/features/cicd
Browse files Browse the repository at this point in the history
Adding SSL configuration
  • Loading branch information
roro89 authored Jul 16, 2024
2 parents 9d3b684 + 70ebca1 commit f4ec907
Show file tree
Hide file tree
Showing 4 changed files with 19 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
14 changes: 14 additions & 0 deletions api/appsettings.Development.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,18 @@
{
"Kestrel": {
"Endpoints": {
"Https": {
"Url": "https://*:443",
"Certificate": {
"Path": "/https/aspnetapp.pfx",
"Password": "developerPassword"
}
},
"Http": {
"Url": "http://*:80"
}
}
},
"Logging": {
"LogLevel": {
"Default": "Information",
Expand Down
Binary file added https/aspnetapp.pfx
Binary file not shown.

0 comments on commit f4ec907

Please sign in to comment.