Skip to content

Commit

Permalink
use sites-enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
squi-ddy committed Nov 28, 2023
1 parent 2ac3aee commit 1d2ee3c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion frontend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM nginx:alpine-slim
EXPOSE 80
COPY nginx.conf /etc/nginx/nginx.conf
COPY nginx.conf /etc/nginx/sites-enabled/serve.conf
COPY dist /usr/share/nginx/html
12 changes: 5 additions & 7 deletions frontend/nginx.conf
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
http {
server {
listen 80;
root /usr/share/nginx/html;
location / {
try_files $uri $uri/ /index.html;
}
server {
listen 80;
root /usr/share/nginx/html;
location / {
try_files $uri $uri/ /index.html;
}
}

0 comments on commit 1d2ee3c

Please sign in to comment.