From 1719399d190ca872cd85fcf9ee54872ca0b38cd0 Mon Sep 17 00:00:00 2001 From: cami Date: Wed, 1 Sep 2021 01:29:21 +0200 Subject: [PATCH] Add nginx file so that the docker container will serve the files --- frontend/nginx/nginx.conf | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 frontend/nginx/nginx.conf diff --git a/frontend/nginx/nginx.conf b/frontend/nginx/nginx.conf new file mode 100644 index 0000000..df44527 --- /dev/null +++ b/frontend/nginx/nginx.conf @@ -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; +} -- 2.45.2