From dd91f24da790a8343e19db57f59bca5fcd5e3627 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Wed, 11 May 2022 18:04:00 -0500 Subject: [PATCH] Mastodon nginx: add .well-known routes, remove unneeded outbox route --- installation/mastodon.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/installation/mastodon.conf b/installation/mastodon.conf index 7d1181dc22..7b7a01270d 100644 --- a/installation/mastodon.conf +++ b/installation/mastodon.conf @@ -78,13 +78,13 @@ server { # Mastodon backend routes. # These are routes to Mastodon's API and important rendered pages. - location ~ ^/(api|oauth|auth|admin|pghero|sidekiq|manifest.json|.well-known/webfinger|.well-known/host-meta|@(.+)/embed$) { + location ~ ^/(api|oauth|auth|admin|pghero|sidekiq|manifest.json|nodeinfo|.well-known/(webfinger|host-meta|nodeinfo|change-password)|@(.+)/embed$) { try_files /dev/null @proxy; } # Mastodon ActivityPub routes. # Conditionally send to Mastodon by Accept header. - location ~ ^/(inbox|outbox|users|@(.+)) { + location ~ ^/(inbox|users|@(.+)) { try_files $activitypub_location $activitypub_location; }