From d46d86529e083ed26924ba96702e3ea2d43323c6 Mon Sep 17 00:00:00 2001 From: Elaine Jackson Date: Mon, 21 Aug 2023 18:42:44 +0000 Subject: [PATCH] Fix Mastodon Media Uploads --- installation/mastodon.conf | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/installation/mastodon.conf b/installation/mastodon.conf index 5a1146db1..5a6d16b99 100644 --- a/installation/mastodon.conf +++ b/installation/mastodon.conf @@ -101,6 +101,13 @@ server { try_files $uri @mastodon-packs; } + # Mastodon Media + location /system { + add_header Cache-Control "public, max-age=31536000, immutable"; + add_header Strict-Transport-Security "max-age=31536000" always; + try_files $uri @mastodon-packs; + } + # Soapbox configuration files. # Enable CORS so we can fetch them. location /instance {