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

site-logo
Alex Gleason 2 years ago
parent 2a389ab225
commit dd91f24da7
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7

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

Loading…
Cancel
Save