Skip to content

Commit

Permalink
Merge pull request #32 from Bricks666/develop
Browse files Browse the repository at this point in the history
v2.1.3
  • Loading branch information
Bricks666 authored Mar 25, 2024
2 parents 6281ec9 + 7aa2c19 commit 24a52bd
Show file tree
Hide file tree
Showing 26 changed files with 8,062 additions and 382 deletions.
4 changes: 4 additions & 0 deletions deploy/nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ http {
include /etc/nginx/mime.types;
default_type application/octet-stream;

types {
application/manifest+json webmanifest;
}

log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
Expand Down
27 changes: 16 additions & 11 deletions deploy/nginx/templates/default.conf.template
Original file line number Diff line number Diff line change
@@ -1,13 +1,3 @@
# Expires map
map $sent_http_content_type $expires {
default off;
text/html epoch;
text/css max;
application/javascript max;
application/json max;
~image/ max;
~font/ max;
}


server {
Expand All @@ -19,12 +9,27 @@ server {

root /usr/share/nginx/html;

expires $expires;

location / {
autoindex off;
expires off;
add_header Cache-Control "public, max-age=0, s-maxage=0, must-revalidate" always;

try_files $uri /index.html;
}

location ^~ /(assets|images|locales)/ {
add_header Cache-Control "public, max-age=31536000, s-maxage=31536000, immutable";

try_files $uri =404;
}

location ^~ /workbox- {
add_header Cache-Control "public, max-age=31536000, s-maxage=31536000, immutable";

try_files $uri =404;
}

location /api {
proxy_pass ${API_PROXY_PASS};
proxy_http_version 1.1;
Expand Down
2 changes: 0 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@
sizes="180x180"
href="images/favicon-180x180.png" />

<link rel="manifest" href="manifest.json" />

<title>ABC Tasks</title>
<meta
name="description"
Expand Down
Loading

0 comments on commit 24a52bd

Please sign in to comment.