Skip to content

Commit

Permalink
Merge pull request #75 from AElfProject/feature/nginx-config
Browse files Browse the repository at this point in the history
feat: nginx config
  • Loading branch information
AbigailDeng authored Aug 1, 2024
2 parents 0fc97fe + d409c95 commit 6e8dd13
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@ FROM cgr.dev/chainguard/nginx:latest
WORKDIR /usr/share/nginx/html
COPY out .

COPY nginx.conf /etc/nginx/conf.d/default.conf

EXPOSE 8080
9 changes: 9 additions & 0 deletions nginx.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
server {
listen 8080;
root /usr/share/nginx/html;
port_in_redirect off;

location / {
try_files $uri $uri/ /index.html;
}
}

0 comments on commit 6e8dd13

Please sign in to comment.