Skip to content

Commit

Permalink
feat: DEVOPS-1184 nginx custom config for dev-wallet (#347)
Browse files Browse the repository at this point in the history
Co-authored-by: Zilliqa GHA - Idb Updater <[email protected]>
  • Loading branch information
pavlops and Zilliqa GHA - Idb Updater authored Jan 8, 2024
1 parent a0b6ab5 commit 6e35ddb
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
3 changes: 2 additions & 1 deletion products/dev-wallet/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ RUN yarn build

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

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

error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
}

0 comments on commit 6e35ddb

Please sign in to comment.