Skip to content

Commit

Permalink
nginx config for history router
Browse files Browse the repository at this point in the history
  • Loading branch information
dhawton committed Oct 28, 2022
1 parent f7e4472 commit 74b7736
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@ RUN yarn install && \

FROM nginx:alpine
COPY --from=build /app/dist /usr/share/nginx/html
COPY nginx.server.conf /etc/nginx/conf.d/default.conf
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]
15 changes: 15 additions & 0 deletions nginx.server.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
server {
listen 80;
listen [::]:80;
server_name localhost;

location / {
root /usr/share/nginx/html;
index index.html index.htm;
try_files $uri $uri/ /index.html;
}

location ~ /\.ht {
deny all;
}
}

0 comments on commit 74b7736

Please sign in to comment.