Merge branch 'shahanneda/fix-404-page' into shahanneda/add-wordcloud
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Shahan Nedadahandeh 2022-07-04 12:24:31 -07:00
commit 910e729795
Signed by: snedadah
GPG Key ID: 8638C7F917385B01
2 changed files with 13 additions and 0 deletions

View File

@ -1,2 +1,5 @@
FROM nginx
COPY ./out /usr/share/nginx/html
COPY staging-nginx.conf /etc/nginx/conf.d
RUN rm /etc/nginx/conf.d/default.conf

10
staging-nginx.conf Normal file
View File

@ -0,0 +1,10 @@
server {
listen 80;
location / {
root /usr/share/nginx/html;
index index.html index.htm;
try_files $uri $uri/ $uri.html $uri.html/ /index.html;
}
error_page 404 /index.html;
}