Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding SSL configuration #9

Merged
merged 3 commits into from
Jul 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
Loading