Skip to content

Commit

Permalink
fix nginx
Browse files Browse the repository at this point in the history
  • Loading branch information
hexadeciman committed Dec 10, 2023
1 parent 8a16c62 commit 3362e04
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
3 changes: 2 additions & 1 deletion captain-definition
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"schemaVersion": 2,
"dockerfileLines": [
"FROM arm32v7/nginx:latest",
"COPY nginx.conf /etc/nginx/",
"COPY nginx.conf /etc/nginx/conf.d/default.conf",
"COPY expires.conf /etc/nginx/conf.d/expires.conf",
"COPY build/ /usr/share/nginx/html"
]
}
9 changes: 9 additions & 0 deletions expires.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Expires map
map $sent_http_content_type $expires {
default off;
text/html epoch;
text/css epoch;
application/javascript epoch;
application/json epoch;
~image/ 12h;
}
1 change: 0 additions & 1 deletion nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ gzip_types
server {
listen 80;
server_name localhost;
root /app;

expires $expires;

Expand Down

0 comments on commit 3362e04

Please sign in to comment.