-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch to Nginx server in Dockerfile and add config
The Dockerfile has been updated to use Nginx server instead of the previously used dotnet/aspnet and the default listening port has been changed to 80. The new nginx.conf configuration file has been added and copied over to the right location in the Dockerfile setup. This change allows our application to use Nginx to better manage web traffic.
- Loading branch information
1 parent
f80d867
commit c47f837
Showing
2 changed files
with
15 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
http { | ||
include mime.types; | ||
server { | ||
listen 80; | ||
location / { | ||
root /usr/share/nginx/html; | ||
try_files $uri $uri/ /index.html =404; | ||
} | ||
} | ||
} |