From 12ee1c82935d5ad68747e97d630b9e56da52c8cb Mon Sep 17 00:00:00 2001 From: smdyv <88971341+smdyv@users.noreply.github.com> Date: Tue, 18 Oct 2022 11:32:18 +0200 Subject: Update device image This is a vectorized image of the Pixel 7 Pro, and saves 98 % of the byte length of the previously used image. --- nginx/nginx.conf | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'nginx') diff --git a/nginx/nginx.conf b/nginx/nginx.conf index 260bc0ab..e39500de 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -81,7 +81,7 @@ http { aio_write on; map $uri $preload_resources_uri { - /index.html ", ; rel=preload; as=image, <{{path|/js/redirect.js}}>; rel=modulepreload; integrity={{integrity|/js/redirect.js}}"; + /index.html ", <{{path|/pixel-7-pro.svg}}>; rel=preload; as=image, <{{path|/js/redirect.js}}>; rel=modulepreload; integrity={{integrity|/js/redirect.js}}"; /faq.html ", <{{path|/js/redirect.js}}>; rel=modulepreload; integrity={{integrity|/js/redirect.js}}"; /install/index.html ", <{{path|/js/redirect.js}}>; rel=modulepreload; integrity={{integrity|/js/redirect.js}}"; /install/cli.html ", <{{path|/js/redirect.js}}>; rel=modulepreload; integrity={{integrity|/js/redirect.js}}"; @@ -116,7 +116,7 @@ http { } map $nopush $push_phone { - 0 /phone.png; + 0 "{{path|/pixel-7-pro.svg}}"; } map $nopush $push_redirect_js { @@ -322,12 +322,6 @@ http { add_header Cache-Control "public, max-age=604800"; } - location = {{path|/mask-icon.svg}} { - include snippets/security-headers.conf; - add_header Cross-Origin-Resource-Policy "same-origin" always; - add_header Cache-Control "public, max-age=31536000, immutable"; - } - location = /.well-known/matrix/client { include snippets/security-headers.conf; add_header Cross-Origin-Resource-Policy "cross-origin" always; @@ -448,6 +442,12 @@ http { add_header Cache-Control "public, max-age=604800"; } + location ~ "\.svg$" { + include snippets/security-headers.conf; + add_header Cross-Origin-Resource-Policy "same-origin" always; + add_header Cache-Control "public, max-age=31536000, immutable"; + } + location ~ "\.png$" { include snippets/security-headers.conf; # avoid breaking image hotlinking such as https://github.com/TryGhost/Ghost/issues/12880 -- cgit v1.3.1