File tree 3 files changed +0
-11
lines changed
3 files changed +0
-11
lines changed Original file line number Diff line number Diff line change 50
50
tags : ${{ steps.meta.outputs.tags }}
51
51
labels : ${{ steps.meta.outputs.labels }}
52
52
push : true
53
- build-args : |
54
- BASE_URL=${{ secrets.BASE_URL }}
55
- AUTH_TOKEN=${{ secrets.AUTH_TOKEN }}
Original file line number Diff line number Diff line change @@ -14,8 +14,6 @@ RUN pnpm run build
14
14
15
15
FROM nginx:stable-alpine
16
16
17
- RUN sed -i '1idaemon off;' /etc/nginx/nginx.conf
18
-
19
17
COPY nginx.conf /etc/nginx/conf.d/default.conf
20
18
21
19
COPY --from=prod /app/dist/ /app
Original file line number Diff line number Diff line change 1
1
server {
2
2
listen 80 default_server ;
3
3
4
- gzip on ;
5
- gzip_min_length 1000 ;
6
- gzip_types text/plain text/xml application/javascript text/css;
7
-
8
4
root /app;
9
5
10
6
# normal routes
11
7
# serve given url and default to index.html if not found
12
8
# e.g. /, /user and /foo/bar will return index.html
13
9
location / {
14
- add_header Cache-Control "no-store" ;
15
10
try_files $uri $uri /index.html /index.html;
16
11
}
17
12
18
13
# files
19
14
# for all routes matching a dot, check for files and return 404 if not found
20
15
# e.g. /file.js returns a 404 if not found
21
16
location ~ \.(?!html) {
22
- add_header Cache-Control "public, max-age=2678400" ;
23
17
try_files $uri =404 ;
24
18
}
25
19
}
You can’t perform that action at this time.
0 commit comments