Add nginx file so that the docker container will serve the files
This commit is contained in:
parent
1a406e74ba
commit
1719399d19
1 changed files with 13 additions and 0 deletions
13
frontend/nginx/nginx.conf
Normal file
13
frontend/nginx/nginx.conf
Normal file
|
@ -0,0 +1,13 @@
|
|||
server {
|
||||
listen 80;
|
||||
|
||||
location / {
|
||||
root /usr/share/nginx/html;
|
||||
index index.html index.htm;
|
||||
# to redirect all the requests to index.html,
|
||||
# useful when you are using react-router
|
||||
try_files $uri /index.html;
|
||||
}
|
||||
|
||||
error_page 500 502 503 504 /50x.html;
|
||||
}
|
Loading…
Reference in a new issue