-
-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #159 from acelaya-forks/feature/fix-docker-image-r…
…eload Added nginx congif which ensures client-side paths are served as the …
- Loading branch information
Showing
3 changed files
with
21 additions
and
2 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
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,17 @@ | ||
server { | ||
listen 80 default_server; | ||
charset utf-8; | ||
root /usr/share/nginx/html; | ||
index index.html; | ||
|
||
# When requesting static paths with extension, try them, and return a 404 if not found | ||
location ~ .+\.(css|js|html|png|jpg|jpeg|gif|bmp|ico|csv|otf|eot|svg|svgz|ttf|woff|woff2|ijmap|pdf|tif|map) { | ||
try_files $uri $uri/ =404; | ||
} | ||
|
||
# When requesting a path without extension, try it, and return the index if not found | ||
# This allows HTML5 history paths to be handled by the client application | ||
location / { | ||
try_files $uri $uri/ /index.html$is_args$args; | ||
} | ||
} |