Skip to content

Commit

Permalink
🚚 add resources for nginx
Browse files Browse the repository at this point in the history
  • Loading branch information
Shion1305 committed Apr 14, 2024
1 parent 72db139 commit 368c7df
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docker/nginx/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM nginx:1.25.3-alpine

COPY default.conf /etc/nginx/conf.d/default.conf
COPY nginx.conf /etc/nginx/conf.d/nginx.conf
COPY www /var/www
CMD ["nginx", "-g", "daemon off;"]
10 changes: 10 additions & 0 deletions docker/nginx/default.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
server {
listen 80;
server_name _;
location /api {
proxy_pass http://localhost:8080;
}
location / {
proxy_pass http://localhost:3000;
}
}
Empty file added docker/nginx/nginx.conf
Empty file.
Empty file added docker/nginx/www/.gitkeep
Empty file.

0 comments on commit 368c7df

Please sign in to comment.