Mastodon nginx: add .well-known routes, remove unneeded outbox route
This commit is contained in:
parent
2a389ab225
commit
dd91f24da7
1 changed files with 2 additions and 2 deletions
|
@ -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…
Reference in a new issue