Skip to content

Commit

Permalink
feat: ✨ update docker file & nginx.conf
Browse files Browse the repository at this point in the history
  • Loading branch information
AruSeito committed May 20, 2024
1 parent 937b9f4 commit 28d9844
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 30 deletions.
2 changes: 0 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@ RUN apk add --no-cache \

## copy frontend
COPY nginx.conf /etc/nginx/nginx.conf
COPY illa-builder-frontend.conf /etc/nginx/conf.d/illa-builder-frontend.conf
COPY ./apps/builder/dist /opt/illa/illa-builder-frontend
RUN rm /etc/nginx/conf.d/default.conf

# test nginx
RUN nginx -t
Expand Down
27 changes: 0 additions & 27 deletions illa-builder-frontend.conf

This file was deleted.

20 changes: 19 additions & 1 deletion nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,23 @@ http {

keepalive_timeout 65;

include /etc/nginx/conf.d/*.conf;
server {
listen 80;
server_name localhost;
access_log /dev/stdout;
error_log /dev/stderr;
root /opt/illa/illa-builder-frontend/;
index index.html;
gzip on;

sub_filter_once off;
location / {
try_files $uri $uri/ /index.html;
expires -1;
}

location /assets {
expires 1y;
}
}
}

0 comments on commit 28d9844

Please sign in to comment.