diff --git a/explorer/Dockerfile b/explorer/Dockerfile index 552d8872..f53e7f16 100644 --- a/explorer/Dockerfile +++ b/explorer/Dockerfile @@ -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 diff --git a/explorer/nginx.conf b/explorer/nginx.conf new file mode 100644 index 00000000..3d7a676d --- /dev/null +++ b/explorer/nginx.conf @@ -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; + } + } +}