Skip to content

Commit

Permalink
Merge pull request #63 from tempfiles-Team/61-기타-라우팅-경로에서-페이지-reload시…
Browse files Browse the repository at this point in the history
…-404-발생

temporary fix
  • Loading branch information
minpeter committed Nov 13, 2022
2 parents 4148e81 + 4aa073c commit f389861
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
FROM nginx:latest

COPY build /usr/share/nginx/html
# Copy the nginx configuration file
COPY nginx.conf /etc/nginx/nginx.conf

COPY build /etc/nginx/html

EXPOSE 80

Expand Down
14 changes: 14 additions & 0 deletions nginx.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
events {}

http {
server {
listen 80;
location / {

if (!-e $request_filename) {
rewrite ^(.*)$ /index.html break;
}

}
}
}

0 comments on commit f389861

Please sign in to comment.