Skip to content

Commit eac77cf

Browse files
committed
chore: docker nginx spa
1 parent e90e7f7 commit eac77cf

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

.dockerignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ dist/
33
.github/
44
Dockerfile
55
.dockerignore
6-
README.md
6+
/*.md

docker-compose.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11

2-
32
services:
4-
wildcat-dashboard-ui:
3+
app:
54
build: .
65
ports:
76
- "8080:80"

docker/nginx/templates/default.conf.template

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,18 @@ server {
1616
add_header Cache-Control "no-store";
1717
}
1818

19+
location ~* \.(?:json)$ {
20+
expires 1d;
21+
add_header Cache-Control "public";
22+
}
23+
1924
location ~* \.(?:css|js|jpg|svg|png)$ {
20-
expires 30d;
25+
expires 90d;
2126
add_header Cache-Control "public";
2227
}
2328

24-
location ~* \.(?:json)$ {
25-
expires 1d;
29+
location ~* \.(?:woff2)$ {
30+
expires 180d;
2631
add_header Cache-Control "public";
2732
}
2833
}

0 commit comments

Comments
 (0)