Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions playground/frontend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,4 @@ FROM nginx:1.21.3
COPY --from=build /app/nginx_default.conf /etc/nginx/conf.d/default.conf
COPY --from=build /app/build/web/ /usr/share/nginx/html
RUN cp /usr/share/nginx/html/assets/assets/* /usr/share/nginx/html/assets/
RUN gzip -kr /usr/share/nginx/html/assets/*
12 changes: 10 additions & 2 deletions playground/frontend/nginx_default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,19 @@ server {
listen 8080;
server_name localhost;

root /usr/share/nginx/html;

gzip_static on;

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

location = /index.html {
expires 30s;
}


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