Skip to content

Commit

Permalink
feat: configure nginx.conf
Browse files Browse the repository at this point in the history
  • Loading branch information
DhananjayPurohit committed Apr 16, 2024
1 parent 6cd8d77 commit 67ac1e5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions explorer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ FROM nginx:latest
# Copy the contents of your local /explorer folder to the container's working directory
COPY ../explorer/index.html /usr/share/nginx/html
COPY ../explorer/main.js /usr/share/nginx/html
COPY ../explorer/nginx.conf /etc/nginx/nginx.conf

# Expose port 80 for web traffic
EXPOSE 80
Expand Down
13 changes: 13 additions & 0 deletions explorer/nginx.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
http {

server {
listen 0.0.0.0:80;
server_name api.mercurywallet.io;

location / {
root /var/www/html;
index index.html;
try_files $uri $uri/ =404;
}
}
}

0 comments on commit 67ac1e5

Please sign in to comment.