Skip to content

Commit

Permalink
Add default nginx server
Browse files Browse the repository at this point in the history
  • Loading branch information
Siarl committed Feb 24, 2024
1 parent 4f19aa7 commit 4b3b2d5
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ FROM nginx:mainline
WORKDIR /usr/share/nginx/html

COPY --from=build /usr/src/app/public .
COPY ./nginx-default.conf /etc/conf.d/default.conf
RUN chmod 777 /var/cache/nginx

EXPOSE 80
Expand Down
15 changes: 15 additions & 0 deletions nginx-default.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
server {
listen 8080;
server_name localhost;

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

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

}

0 comments on commit 4b3b2d5

Please sign in to comment.