Merge branch 'fix-mastodon-nginx-conf' into 'develop'

Fix Mastodon Nginx Configuration

See merge request soapbox-pub/soapbox!2644
environments/review-develop-3zknud/deployments/3724
Alex Gleason 1 year ago
commit a3470e6bb4

@ -83,13 +83,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|media|nodeinfo|unsubscribe|.well-known/(webfinger|host-meta|nodeinfo|change-password)|@(.+)/embed$) {
location ~ ^/(api|inbox|oauth|auth|admin|pghero|sidekiq|manifest.json|media|nodeinfo|unsubscribe|.well-known/(webfinger|host-meta|nodeinfo|change-password)|@(.+)/embed$) {
try_files /dev/null @mastodon;
}
# Mastodon ActivityPub routes.
# Conditionally send to Mastodon by Accept header.
location ~ ^/(inbox|users|@(.+)) {
location ~ ^/(users|@(.+)) {
try_files /dev/null $activitypub_location;
}

Loading…
Cancel
Save