Mastodon nginx: add .well-known routes, remove unneeded outbox route

site-logo
Alex Gleason 2022-05-11 18:04:00 -05:00
rodzic 2a389ab225
commit dd91f24da7
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 7211D1F99744FBB7
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -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;
}