From 3bbad5b5fc576d641f2940989404640d6606b59a Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Tue, 10 May 2022 17:20:20 -0500 Subject: [PATCH] Mastodon nginx: route pghero and sidekiq to Mastodon --- installation/mastodon.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/installation/mastodon.conf b/installation/mastodon.conf index daa45b42c..1c3de0961 100644 --- a/installation/mastodon.conf +++ b/installation/mastodon.conf @@ -75,7 +75,7 @@ server { # Mastodon backend routes. # These are routes to Mastodon's API and important rendered pages. - location ~ ^/(api|oauth|auth|admin|manifest.json|.well-known/webfinger|@(.+)/embed$) { + location ~ ^/(api|oauth|auth|admin|pghero|sidekiq|manifest.json|.well-known/webfinger|@(.+)/embed$) { try_files /dev/null @proxy; } @@ -88,7 +88,7 @@ server { # Mastodon public files. # https://github.com/mastodon/mastodon/tree/main/public # Take only what we need for Soapbox. - location ~ ^/(favicon.ico|browserconfig.xml|embed.js|android-chrome-192x192.png|apple-touch-icon.png|avatars/original/missing.png|headers/original/missing.png) { + location ~ ^/(assets|favicon.ico|browserconfig.xml|embed.js|android-chrome-192x192.png|apple-touch-icon.png|avatars/original/missing.png|headers/original/missing.png) { root /home/mastodon/live/public; add_header Cache-Control "public, max-age=31536000, immutable"; add_header Strict-Transport-Security "max-age=31536000" always;