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