Mastodon nginx: rename `@proxy` to `@mastodon`

merge-requests/1355/head
Alex Gleason 2022-05-11 18:34:53 -05:00
rodzic f08da5f8f0
commit 83ae5d7cff
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 7211D1F99744FBB7
1 zmienionych plików z 4 dodań i 4 usunięć

Wyświetl plik

@ -15,8 +15,8 @@ map $http_upgrade $connection_upgrade {
# ActivityPub routing.
map $http_accept $activitypub_location {
default @soapbox;
"application/activity+json" @proxy;
'application/ld+json; profile="https://www.w3.org/ns/activitystreams"' @proxy;
"application/activity+json" @mastodon;
'application/ld+json; profile="https://www.w3.org/ns/activitystreams"' @mastodon;
}
upstream backend {
@ -83,7 +83,7 @@ server {
# Mastodon backend routes.
# These are routes to Mastodon's API and important rendered pages.
location ~ ^/(api|oauth|auth|admin|pghero|sidekiq|manifest.json|nodeinfo|.well-known/(webfinger|host-meta|nodeinfo|change-password)|@(.+)/embed$) {
try_files /dev/null @proxy;
try_files /dev/null @mastodon;
}
# Mastodon ActivityPub routes.
@ -131,7 +131,7 @@ server {
}
# Proxy to Mastodon's Ruby on Rails backend.
location @proxy {
location @mastodon {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;