From 89c3b18091b5c7ce56c702cbf77f3ad938f05d40 Mon Sep 17 00:00:00 2001 From: packetcat Date: Fri, 3 Mar 2023 14:51:48 -0500 Subject: [PATCH] let's try without the various location blocks --- ubuntu/molly.silvestris.systems.yml | 37 ++--------------------------- 1 file changed, 2 insertions(+), 35 deletions(-) diff --git a/ubuntu/molly.silvestris.systems.yml b/ubuntu/molly.silvestris.systems.yml index e0d88ec..86f76f7 100644 --- a/ubuntu/molly.silvestris.systems.yml +++ b/ubuntu/molly.silvestris.systems.yml @@ -35,41 +35,8 @@ - location / { try_files $uri @proxy; } - - location = /sw.js { - add_header Cache-Control "public, max-age=604800, must-revalidate"; - add_header Strict-Transport-Security "max-age=63072000; includeSubDomains"; - } - - location ~ ^/assets/ { - add_header Cache-Control "public, max-age=2419200, must-revalidate"; - add_header Strict-Transport-Security "max-age=63072000; includeSubDomains"; - } - - location ~ ^/avatars/ { - add_header Cache-Control "public, max-age=2419200, must-revalidate"; - add_header Strict-Transport-Security "max-age=63072000; includeSubDomains"; - } - - location ~ ^/emoji/ { - add_header Cache-Control "public, max-age=2419200, must-revalidate"; - add_header Strict-Transport-Security "max-age=63072000; includeSubDomains"; - } - - location ~ ^/headers/ { - add_header Cache-Control "public, max-age=2419200, must-revalidate"; - add_header Strict-Transport-Security "max-age=63072000; includeSubDomains"; - } - - location ~ ^/packs/ { - add_header Cache-Control "public, max-age=2419200, must-revalidate"; - add_header Strict-Transport-Security "max-age=63072000; includeSubDomains"; - } - - location ~ ^/shortcuts/ { - add_header Cache-Control "public, max-age=2419200, must-revalidate"; - add_header Strict-Transport-Security "max-age=63072000; includeSubDomains"; - } - - location ~ ^/sounds/ { - add_header Cache-Control "public, max-age=2419200, must-revalidate"; - add_header Strict-Transport-Security "max-age=63072000; includeSubDomains"; - } - - location ~ ^/system/ { - add_header Cache-Control "public, max-age=2419200, immutable"; - add_header Strict-Transport-Security "max-age=63072000; includeSubDomains"; + - location ~ ^/(emoji|packs|system/media_attachments/files|system/accounts/avatars) { + add_header Cache-Control "public, max-age=31536000, immutable"; } - location ^~ /api/v1/streaming { proxy_set_header Host $host;